sshd takes 15 minutes to start

Darren Tucker dtucker at zip.com.au
Fri Aug 1 09:45:34 EST 2003


swhatley at hal-pc.org wrote:
> We are running OpenSSH v3.4p1 on three ES340 Alpha which run Tru64 v5.1A.
> The last couple of weeks, the system hangs at bootup for 15 minutes at the
> point where it is bring up sshd.  When I manually stop and start sshd, it still
> takes 15 minutes.  I manually ran sshd with the -ddd level 3 debug option.
>  sshd hanges at the message which states it is creating a randomized seed.  It
> also tkaes 15 minutes to run ssh_keygen.

It sounds like one of the processes run by ssh-rand-helper is now hanging
for some reason.  This will most likely be one of the binaries replaced in
your upgrade.

The random helper is supposed to time out any command that takes too long
(>100 ms from memory) but there was a problem in earlier versions of
OpenSSH on some platforms where that did not occur.

To identify the command that's hanging, run ssh-rand-helper on its own
with a "-vv" argument.  You will be able to see each command as it's run
and identify the one that's hanging.  Once you've found it (or them),
comment those commands out of ssh_prngs_cmds.

Upgrading sshd will also resolve the problem as the timeout bug has been
fixed.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list