On 01 October, 2001 - Rune Mossige sent me these 1.4K bytes:
> I am trying to generate a ssh_known_hosts2 file, 2.9.9p2,
> using:
> ssh-keyscan -f list_of_hosts -t rsa > ssh_known_hosts.rsa
> and
> ssh-keyscan -f list_of_hosts -t dsa > ssh_known_hosts.dsa
>
> but both commands fail almost immidiately with:
> Couldn't obtain random bytes (error 604389476)
>
> What could that mean?
Seems like ssh-keyscan doesn't seed the RNG...
This patch works for me.. (not sure exactly where it's best to put it or
if there is some other function that should be called)
*** site/ssh-keyscan.c Thu Sep 20 22:30:09 2001
--- solaris8/ssh-keyscan.c Thu Oct 4 00:27:38 2001
***************
*** 761,766 ****
--- 761,767 ----
log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1);
fatal_add_cleanup(fatal_callback, NULL);
+ seed_rng();
maxfd = fdlim_get(1);
if (maxfd < 0)
/Tomas
--
Tomas �gren, [EMAIL PROTECTED], http://www.ing.umu.se/~stric/
|- Student at Computing Science, University of Ume�
`- Sysadmin at {cs,ing,acc}.umu.se
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]