Issue 84 in shellinabox: shellinaboxd -s /:SSH:example.org after typing in login name, disconnect occurs

249 views
Skip to first unread message

shell...@googlecode.com

unread,
Aug 15, 2010, 7:20:05 PM8/15/10
to shell...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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.

shell...@googlecode.com

unread,
Aug 15, 2010, 7:24:22 PM8/15/10
to shell...@googlegroups.com

Comment #1 on 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

Ow, forgot to say running Debian Lenny, compiled shellinaboxd from sources
downloaded here.

shell...@googlecode.com

unread,
Aug 16, 2010, 1:33:52 PM8/16/10
to shell...@googlegroups.com

Comment #2 on issue 84 by zod...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

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.

shell...@googlecode.com

unread,
Oct 11, 2010, 7:57:33 PM10/11/10
to shell...@googlegroups.com

Comment #3 on issue 84 by lucaciti: shellinaboxd -s /:SSH:example.org after
typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

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


shell...@googlecode.com

unread,
Nov 22, 2010, 5:05:53 AM11/22/10
to shell...@googlegroups.com

Comment #4 on issue 84 by dpp.phone: shellinaboxd -s /:SSH:example.org
after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

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.

shell...@googlecode.com

unread,
Feb 8, 2011, 10:19:38 AM2/8/11
to shell...@googlegroups.com

Comment #5 on issue 84 by BenPr...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

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?

shell...@googlecode.com

unread,
Mar 6, 2012, 4:45:33 AM3/6/12
to shell...@googlegroups.com

Comment #6 on issue 84 by decoy113...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

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


shell...@googlecode.com

unread,
Mar 31, 2012, 5:52:19 PM3/31/12
to shell...@googlegroups.com

Comment #7 on issue 84 by beewoo...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

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.

shell...@googlecode.com

unread,
Dec 1, 2013, 5:12:08 PM12/1/13
to shell...@googlegroups.com

Comment #8 on issue 84 by tombe...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

Same problem.
Using NixOS, tried bulding using nix builder and make/configure. I can get
SSL to work, but no matter what I do, the session get's closed "Child
Terminated" "Failed to find session:"

Tried different ports. Tried to change authentication method.

Using 2.14

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

shell...@googlecode.com

unread,
Dec 1, 2013, 6:05:14 PM12/1/13
to shell...@googlegroups.com

Comment #9 on issue 84 by beewoo...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

I wonder if this is the same problem as the SunOS folks are having. You
could try the patch in issue #58.

shell...@googlecode.com

unread,
Dec 1, 2013, 7:07:56 PM12/1/13
to shell...@googlegroups.com

Comment #10 on issue 84 by tombe...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

#58 seems to occur after login. I get the "Session Closed" right after
hitting enter after typing the username.

shell...@googlecode.com

unread,
Dec 4, 2013, 9:18:43 PM12/4/13
to shell...@googlegroups.com

Comment #11 on issue 84 by konce...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

I had this issue as well, in my case it was that the hostname didn't
resolve correctly. You might want to double check that your hostname
resolves to the address that you expect.

shell...@googlecode.com

unread,
Dec 6, 2013, 11:11:37 AM12/6/13
to shell...@googlegroups.com

Comment #12 on issue 84 by tombe...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

I've tried both IP and hostname.

shell...@googlecode.com

unread,
Dec 29, 2013, 11:32:35 AM12/29/13
to shell...@googlegroups.com

Comment #13 on issue 84 by tombe...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
http://code.google.com/p/shellinabox/issues/detail?id=84

@beew...@gmail.com

I've been able to patch paths in NixOS to make shellinabox work, but I'd
like to add the option have the SSH go to a non-standard port. Currently I
do it by disabling the hostname checking ("Don't allow manipulation of the
SSH command line through "creative" use of the hostname" in service.c) so
my service string looks like -s '/:SSH:localhost -p 1234' -p 4321

That would host shellinabox on port 4321 and ssh into port 1234.

I'd rather there be an established way to do this rather than a command
injection.

shell...@googlecode.com

unread,
Apr 28, 2015, 2:24:08 PM4/28/15
to shell...@googlegroups.com

Comment #14 on issue 84 by karl.stj...@gmail.com: shellinaboxd -s
/:SSH:example.org after typing in login name, disconnect occurs
https://code.google.com/p/shellinabox/issues/detail?id=84

Got this issue when I changed hostname on my server, what fixed it:

1. edit /etc/hosts
2. Change the oldHostname in the line 127.0.1.1 to your new hostname.
Reply all
Reply to author
Forward
0 new messages