what's the difference between /etc/init.d/sshd start and /usr/sbin/sshd?

Posted by jasono on Super User See other posts from Super User or by jasono
Published on 2012-10-29T22:48:25Z Indexed on 2012/10/29 23:05 UTC
Read the original article Hit count: 213

Filed under:
|
|

I'm having issues with passwordless ssh. I've checked, double checked and checked again that I have everything set up correctly.

Both machines are RHEL6 and when the destination machine first boots up passwordless ssh does not work. If I stop ssh (service sshd stop or /ect/init.d/sshd stop) and then start it directly (/usr/sbin/sshd) passwordless ssh works fine.

If I start ssh via the service (service sshd start or /etc/init.d/sshd start) passwordless ssh does not work.

Just for testing I've tried commenting out the entire start() function in /etc/init.d/sshd and replace it with /usr/sbin/sshd - that still fails to allow passwordless ssh. I believe that this means that something in the /etc/init.d/sshd file is causing the screw up but I don't know enough about linux to narrow the issue down.

© Super User or respective owner

Related posts about ssh

Related posts about passwords