Proving OpenSSH 3.4p1 is using /dev/urandom (Solaris 9 ossh Vs OpenBSD ossh)

From: Surinder S. Dio (S.S.Dio@gre.ac.uk)
Date: 07/21/02


Date: Sun, 21 Jul 2002 16:59:55 +0100
From: "Surinder S. Dio" <S.S.Dio@gre.ac.uk>
To: focus-sun@securityfocus.com

hi,

I've been scratching my head with for a while and I suspect I'm
going to look pretty silly when someone points out an obvious
answer.

[Please forgive my inexact uses of terms like randomness.]

I've had my battles with using a randomness generator under Solaris.
Over the years while compiling up OpenSSH I've used AndiRAND, egd,
PRNGD and now latterly the native /dev/random from Solaris 8 (via
patch 112438) and the default one with Solaris 9.

I mostly use PRNGD on my Solaris boxes and want to move away to
using the native /dev/random devices under Solaris 8 & 9. However I
want to be sure that the device is being used and that I'm getting
the best "randomness" and not using the built in generator in
OpenSSH (which I understand is not as good a source of "randomness")

I installed the ssh that comes with Solaris 9 and checked with lsof
and lo and behold; it is using /dev/urandom

sshd 496 root 3r VCHR 190,1 0t400 56050 /devices/pseudo/random@0:urandom

I then compiled and installed OpenSSL 0.9.6d and OpenSSH 3.4p1;
prefixing it into a temporary directory; without specifying any of
the --with-prngd-* options; assuming that /dev/urandom would be used
automatically.

However lsof does not show it being used as above. So I assumed that
there must be another configure option, version 3.4p1 didnt seem to
have any others though a search of the web indicated that earlier
versions allowed --with-random; so I tried
--with-random=/dev/urandom.

Again lsof indicated that it wasn't being used.

So either I'm compiling up OpenSSH incorrectly, or the Sun SSH is
significantly different or I'm misunderstanding my lsof output or
something else :-(

Could someone point how I can guarantee that /dev/urandom is being
used and how the Sun version managed to use it. Am I missing a
compile/configure option?

Many thx
Surinder



Relevant Pages

  • Re: Ping: Don Nichols re. Sun workstation
    ... It isn't a command that was introduced with Solaris ... PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND ... My favourite browser is Netscape 7. ... Sun. (Jove tended to have troubles compiling under gcc, ...
    (rec.crafts.metalworking)
  • Re: OpenSSH Password Aging/Expiration on UW2.1.3
    ... Try using gcc compiler. ... >difficulties with UnixWare and not Solaris. ... >> Look at the thread 'OpenSSH and forced password change' ... >>> When user bob attempts to login, ...
    (comp.security.ssh)
  • Re: Ping: Don Nichols re. Sun workstation
    ... It isn't a command that was introduced with Solaris 10, ... PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND ... Unfortunately I've had to switch to using Mozilla Firefox for daily use as Netscape is no longer updated. ... Sun. (Jove tended to have troubles compiling under gcc, ...
    (rec.crafts.metalworking)
  • Re: ssh compatability issues
    ... >> without keeping two versions of ssh around on my home computer. ... running the OpenSSH server that comes with Solaris ... By 'some old security problems with that' I was not sure if you meant ...
    (comp.security.ssh)
  • Re: Ping: Don Nichols re. Sun workstation
    ... It isn't a command that was introduced with Solaris ... actually install Solaris 10 instead of Solaris 9. ... Shame it doesn't fix the HOSTID and MAC address. ... Sun. (Jove tended to have troubles compiling under gcc, ...
    (rec.crafts.metalworking)

Quantcast