Hang on successful log in...

Matt Johnston matt at ucc.asn.au
Tue Dec 6 00:40:36 WST 2005


On Mon, Dec 05, 2005 at 10:40:24AM +1100, Matthew Percival wrote:
> G'Day,
> 
> 	I have Dropbear server (0.46) running on an embedded system, however, I
> have had trouble connecting to it.  Things seem to be running normally
> most of the time, however, when I successfully log in (if I
> intentionally type the password wrong, the log in fails in the expected
> manner) everything simply hangs.  I had assumed it was an entropy issue,
> so I recompiled with /dev/urandom selected, rather than /dev/random, in
> options.h, but the problem remains --- perhaps it still is an entropy
> issue, but I understand urandom should spit out any old garbage when it
> runs.  I also checked to see if it were simply a long delay in the log
> in sequence, but after an hour or so there was still no change.
> 
> 	If anyone can offer any advice to what the problem may be, it would be
> greatly appreciated.

My first suspicion would be terminal handling code. Could
you try logging in without getting a PTY and shell, with
something like
ssh user at host "echo testing123"
and seeing if you get output? dbclient and openssh both have
a -T option which will disable the pty for an interactive
session, you'll only get a response after sending a newline for
each command.

I assume there's nothing logged in /var/log/auth.log or
similar?

Let me know how that goes to try and debug it further.

Cheers,
Matt


More information about the Dropbear mailing list