1833016 Members
2592 Online
110048 Solutions
New Discussion

ssh config error

 
SOLVED
Go to solution
John McDen
Regular Advisor

ssh config error

When I run the command
ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh/ssh_host_key -N ""

I get this error
couldn't read entropy commands file /opt/openssh2/etc/ssh_prng_cmds: No such file or directory
ssh-rand-helper child produced insufficient data

can somebody tell me what is this error please.
New to HP
3 REPLIES 3
Jeff Schussele
Honored Contributor
Solution

Re: ssh config error

Hi John,

Check these threads:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4ff8911284f5d5118ff40090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x70c6c8ecad09d6118ff40090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8ccf28e43106d6118ff40090279cd0f9,00.html

It sounds to me like swinstall did not create and/or populate the /opt/openssh2/etc dir.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sridhar Bhaskarla
Honored Contributor

Re: ssh config error

HI John,

Make sure you have this file in /opt/openssh2/etc directory. Look at your depot. Use the command

swlist -l file @host:depot_path

to find if this file is packaged in it.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Mark Fenton
Esteemed Contributor

Re: ssh config error

John, if that file is missing, here's the contents of mine -- just create it in the /opt/openssh2/etc directory:

# Format is: "program-name args" path rate

# The "rate" represents the number of bits of usuable entropy per
# byte of command output. Be conservative.
#
# $Id: ssh_prng_cmds.in,v 1.6 2001/02/09 01:55:36 djm Exp $

"ls -alni /var/log" undef 0.02
"ls -alni /var/adm" /bin/ls 0.02
"ls -alni /var/mail" /bin/ls 0.02
"ls -alni /var/adm/syslog" /bin/ls 0.02
"ls -alni /var/spool/mail" undef 0.02
"ls -alni /proc" undef 0.02
"ls -alni /tmp" /bin/ls 0.02
"ls -alni /var/tmp" /bin/ls 0.02
"ls -alni /usr/tmp" /bin/ls 0.02
"ls -alTi /var/log" undef 0.02
"ls -alTi /var/adm" undef 0.02
"ls -alTi /var/mail" undef 0.02
"ls -alTi /var/adm/syslog" undef 0.02
"ls -alTi /var/spool/mail" undef 0.02
"ls -alTi /proc" undef 0.02
"ls -alTi /tmp" undef 0.02
"ls -alTi /var/tmp" undef 0.02
"ls -alTi /usr/tmp" undef 0.02

"netstat -an" /bin/netstat 0.05
"netstat -in" /bin/netstat 0.05
"netstat -rn" /bin/netstat 0.02
"netstat -pn" undef 0.02
"netstat -s" /bin/netstat 0.02

"arp -a -n" undef 0.02

"ifconfig -a" undef 0.02

"ps laxww" undef 0.03
"ps -al" /bin/ps 0.03
"ps -efl" /bin/ps 0.03

"w" /bin/w 0.05

"who -i" undef 0.01

"last" /bin/last 0.01

"lastlog" undef 0.01

"df" /bin/df 0.01
"df -i" /bin/df 0.01

"vmstat" /bin/vmstat 0.01
"uptime" /bin/uptime 0.01

"ipcs -a" /bin/ipcs 0.01

"tail -200 /var/log/messages" undef 0.01
"tail -200 /var/log/syslog" undef 0.01
"tail -200 /var/adm/messages" /bin/tail 0.01
"tail -200 /var/adm/syslog" /bin/tail 0.01
"tail -200 /var/adm/syslog/syslog.log" /bin/tail 0.01
"tail -200 /var/log/maillog" undef 0.01
"tail -200 /var/adm/maillog" undef 0.01
"tail -200 /var/adm/syslog/mail.log" /bin/tail 0.01


hth

Mark