ssh-keygen hangs with empty prngd.conf - bug ?

Hari hari at isofttechindia.com
Tue Jun 18 23:51:25 EST 2002


Hi,

I use openssh-2.9p2 on an i386 LynxOS system.
Since LynxOS does not have support for /dev/[u]random, I installed openssh
with prngd support.
It so happened by accident on installation that prngd.conf got truncated to
zero size.
With prngd running as such, ssh-keygen just hangs.
I notice similar case with sshd, ssh, ... as all these depend on prngd for
random number.

SMMEstack# /usr/sbin/sshd -d -d -d
debug1: Seeding random number generator

< hang >

The hang because of ssh-keygen is important, because the rc boot scripts
generate ssh host keys if they are not present. Under such cases, (the first
time the system boots), the system boot just hangs on ssh-keygen which
should not happen. Isn't this serious? I expect the applications to print an
error (report random number not available or timeout) and exit.

One other interesting thing to notice is that, prngd consumes extra-ordinary
cpu resource with empty prngd.conf (bug in prngd ???).


 PID USERNAME TID PRI   TEXT  STK   DATA STATE   TIME    CPU COMMAND
  78 root      66  17   132K  28K  56K 	ready   5:32   97.69% prngd

Thanks,
Hari





More information about the openssh-unix-dev mailing list