Thanks for the tip. That worked!!!!
But, I also had to add init_rng(); just before seed_rng();
Without init_rng(), I would only get 'RNG not initialised' as
output...
On (04/10/01 00:32), Tomas Ogren wrote:
> Date: Thu, 4 Oct 2001 00:32:29 +0200
> From: Tomas Ogren <[EMAIL PROTECTED]>
> To: Rune Mossige <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: Couldn't obtain random bytes
> Content-Disposition: inline
> Content-Transfer-Encoding: 8bit
> User-Agent: Mutt/1.2.5i-nntp2
> X-System: Linux thelma 2.0.38
>
> 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
>
--
-------------------------------------------------------------------
(-: Hiroshima 45, Chernobyl 86, Windows 95 :-)
Our ultimate goal is to make overloaded systems appear to be idle.
High performance, High reliability, Low cost -------- Pick any two.
-------------------------------------------------------------------
Rune Mossige, Systems Support Engineer, WesternGeco, Stavanger
Tel: (+47)51946869 Mobile:(+47)90871024
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]