Hang on successful log in...
Matthew Percival
matthew at capgo.com
Tue Dec 6 06:39:14 WST 2005
On Tue, 2005-12-06 at 00:40 +0800, Matt Johnston wrote:
> 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
>
G'Day,
Thanks a lot for your response. It looks like you are on to something
here too! I used the command as you suggested, and received
`testing123' on the screen before ssh exited gracefully. There is no
logging, as you have assumed. The session was as follows:
$ ssh -T sysadmin at 10.0.0.13 "echo testing123"
sysadmin at 10.0.0.13's password:
testing123
$
-- Matthew
More information about the Dropbear
mailing list