1833861 Members
2397 Online
110063 Solutions
New Discussion

Re: Re starting openssh

 
SOLVED
Go to solution
Simon Wickham_1
Occasional Advisor

Re starting openssh

I have just installed Openssh-3.1p1-sd-11.00 and create a opensshd in /sbin/init.d as enclosed.
The problem is that if i try to start it i get the following error message : ERROR: /etc/rc.config.d/sshd defaults file MISSING
./sshd[54]: test: Specify a parameter with this command.
Starting Secure Shell Daemon
couldn't read entropy commands file /opt/openssh2/etc/ssh_prng_cmds: No such file or directory
ssh-rand-helper child produced insufficient data
EXIT CODE: 255


I have four file in /opt/openssh2/etc which are as followed :
moduli.out ssh_config.out ssh_prng_cmds.out sshd_config.out


Could you please advise me on how i can get this daemon to start.

Regards
Help required
14 REPLIES 14
harry d brown jr
Honored Contributor
Solution

Re: Re starting openssh


One, check the permissions on the files.

Two, when in the boot process is this supposed to start, because you have to make sure /opt is mounted and the network is up before you start openssh.

From the man pages of sshd:

Specifies the name of the configuration file. The default is /opt/openssh2/etc/sshd_config. sshd refuses to start if there is no configuration file.



live free or die
harry
Live Free or Die
Simon Wickham_1
Occasional Advisor

Re: Re starting openssh

Thanks for your help.
Help required
harry d brown jr
Honored Contributor

Re: Re starting openssh

Simon,

What fixed the issue?

thanks,

live free or die
harry
Live Free or Die
Simon Wickham_1
Occasional Advisor

Re: Re starting openssh

Hi
No does this mean that i add what is in /sbin/init.d/sshd.

Regards
Help required
Simon Wickham_1
Occasional Advisor

Re: Re starting openssh

Thanks for your help i amnged to resolve the issue by installing Zlib and Openssl.

Thanks again
Simon
Help required
harry d brown jr
Honored Contributor

Re: Re starting openssh

Simon,

Been there, done that! Too bad they aren't "bundled" into a simple install!

have fun with it!

live free or die
harry
Live Free or Die
TWBSupport
Regular Advisor

Re: Re starting openssh

HELP! I'm in the same boat as the original question.

I have installed OpenSSH on 10.20. I installed prior to this the zlib & the openssl. Installation went fine, no problems. It did create the /opt/openssh2/etc. The files within etc are moduli.out, ssh_config.out, ssh_prng_cmds.out & sshd_config.out. When I go to start sshd the following comes up: "couldn't read entropy commands file /opt/openssh2/etc/ssh_prng_cmds: No such file or directory ssh-rand-helper child produced insufficient data".

I am about to start ripping my hair out! Any ideas?
Simon Wickham_1
Occasional Advisor

Re: Re starting openssh

Hi
you will have to create a script in /sbin/init.d called opensshd or if there is no other version call it sshd.

If you have another veersion of ssh running ensure you stop it.And then simply in /sbin/init.d start sshd.

ie
./sshd start
Help required
TWBSupport
Regular Advisor

Re: Re starting openssh

Hi there!
thanks so much for your prompt response. that helped immensely! I'm getting a little closer. :o) I am now getting the error below.

tw053s03 # ./sshd start
./sshd[47]: .: recursion too deep.

Any ideas on this one?
TWBSupport
Regular Advisor

Re: Re starting openssh

I apologize for the stupidity on the recursive thing.... Got that figured out, but I am still receiving the following error...

Starting Secure Shell Daemon
couldn't read entropy commands file /opt/openssh2/etc/ssh_prng_cmds: No such file or direc
tory
ssh-rand-helper child produced insufficient data
EXIT CODE: 255

Any advice would be greatly appreciated. Thank you.
TWBSupport
Regular Advisor

Re: Re starting openssh

OK - I think I figured out the not being able to find the path. the '.' was not preceeding the /opt/openssh2/etc path. I corrected that, now I get a syntax error on line 2. Here's the exact error...

tw053s03 # ./sshd start
Starting Secure Shell Daemon
./sshd[59]: Syntax error at line 2 : `(' is not expected.

baby steps.... :o)
TWBSupport
Regular Advisor

Re: Re starting openssh

no luck.. did an echo after each command to see where it is failing & it's not even getting to the /opt/openssh2/ directory. I took the '.' off the front of the path & now I get the echo back, but I'm back to the original error!

"tw053s03 # ./sshd start
starting script
in start
in else SSHD=1
Starting Secure Shell Daemon
couldn't read entropy commands file /opt/openssh2/etc/ssh_prng_cmds: No such file or direc
tory
ssh-rand-helper child produced insufficient data
/opt/openssh2/sbin/sshd executed
in set_return"

Please... anybody??

TWBSupport
Regular Advisor

Re: Re starting openssh

Ok - Just to let anyone know who may be going through the same thing I was... I eventually did the following within /opt/openssh2/etc

cp moduli.out moduli
cp ssh_config.out ssh_config
cp ssh_prng_cmds.out ssh_prng_cmds
cp sshd_config.out sshd_config

Whallah! Everything worked after that!