what's the difference between /etc/init.d/sshd start and /usr/sbin/sshd?
- by jasono
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.