New issue 84 by schreppers: shellinaboxd -s /:SSH:example.org after typing
in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84
What steps will reproduce the problem?
1. run shellinabox with SSH service
2. attempt to login
3. disconnected before being able to type password
What is the expected output? What do you see instead?
Expected to login, same as using regular service which works fine.
What version of the product are you using? On what operating system?
2.10
Please provide any additional information below.
Seems to work perfectly only when trying ssh instead of auth it disconnects
after typing the login name.
Ow, forgot to say running Debian Lenny, compiled shellinaboxd from sources
downloaded here.
You could try attaching "strace -f" to the shellinaboxd daemon process.
This might shed some more light on what is happening.
Other than that, my best guess is that either you don't have ssh client
and/or server software installed. Or your version of ssh doesn't like the
command line flags that shellinaboxd gives it.
I had the same problem.
In my case the cause was the fact that I use a non-standard ssh port (other
than 22).
Adding the following to the command line or to SHELLINABOX_ARGS in
/etc/default/shellinabox solved the problem:
--service=/s:user:grp:HOME:'ssh user-ssh@localhost -p 12345'
Best,
Luca
I have the same problem as schreppers, no solution yet. Running on FreeBSD
8.1 with shellinabox version 2.10 (revision 186) installed from ports
tree. No options changed -- just a basic install, leading to this issue.
This is a pretty big problem -- it makes shellinabox totally useless.
Perhaps the priority should be higher than Medium.
I'm running into the same symptom but I'm not sure if the problem is the
same, I submitted ticket 112.
schreppers and dpp.phone are you using two-factor authentication for
connecting to SSHd?
I ran in the same problem. I made a wrapper script that asks for a username
and then proceed to execute the ssh command with arguments of your choice:
Using directly the ssh command was a no-go for me because I wanted to
choose the username.
Sadly the script must be added in a predefined path (eg /usr/bin) because
shellinabox 2.10 rejects custom paths.
In my case ssh was on port 2022.
#!/bin/bash
read -p "Username please:"
REPLY2="`echo $REPLY|tr -c 'A-Za-z0-9' '\0'`"
if [ "$REPLY" != "$REPLY2" ]; then
echo "What is that, illegal characters in my prompt?"
elif [ "$REPLY" == "" ]; then
echo "I asked nicely, retry when you're ready!"
else
exec ssh -p 2022 $REPLY@localhost
fi
IIUIC, the root cause is the fact that the ssh daemon does not use port
22. Is that the only issue? If you were to change to port 22 would the
issue be resolved? I recognize that this isn't a work-around. I just want
to get to the root of the problem.