no shell after login

Stefan Reinauer stepan at coresystems.de
Mon Mar 27 13:01:24 WST 2006


Hi,

I've recently found a precompiled version of dropbear on the net (0.43)
which worked fine on my mips32 based netgear wgt634u. To make sure I am
up to date with security and features, I downloaded the 0.48.1 source
and compiled it using the linksys cross gcc for mipsel-uclibc.

When I ssh to the system now, I don't get a shell anymore (default was
ash) but when I press return the connection drops again.

ssh root at a.b.c.d /bin/some-command

works fine though. 

This sounds similar to the following issue I found in the list archive:
http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/2005q4/000309.html

Which I think remained unresolved.

Any ideas? Anything I can do to debug this further?

An ssh -v reveils the following:

OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to wgt634u [192.168.0.253] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version dropbear_0.48.1
debug1: no match: dropbear_0.48.1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'wgt634u' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
root at wgt634u's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = <whatever is set>
<hang until return>
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 1 clearing O_NONBLOCK
Connection to wgt634u closed by remote host.
Connection to wgt634u closed.
debug1: Transferred: stdin 0, stdout 0, stderr 77 bytes in 4.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 19.4
debug1: Exit status -1

Thanks in advance,
    Stefan


-- 
coresystems GmbH · Brahmsstr. 16 · D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 · Fax: +49 761 7664613
Email: info at coresystems.de  · http://www.coresystems.de/



More information about the Dropbear mailing list