Ubuntu – Cannot run SSH or send commands to /etc/init.d/ssh

sshUbuntuubuntu-8.04

When I attempt to execute any commands such as /etc/init.d/ssh restart or /etc/init.d/ssh start, I get no output. It just goes to the next command line (Ubuntu Hardy). I can even pass in junk parameters such as /etc/init.d/ssh asldkfjalskfdj and i get no warnings or error messages, it just goes to the next line. I can check in my processes:

lsof -i :22

and don't see my ssh process. I also don't see my SSH process when i run:

netstat -na --inet

Any troubleshooting suggestions?

THANK YOU ALL SO MUCH!! I have no idea how i got rid of it, but apparently i killed my SSH install. A quick sudo apt-get install ssh openssh-server did the trick!! I really appreciate you all taking time out of your day to help me out!

Best Answer

The script will exit immediately if the /usr/sbin/sshd binary can not be found and executed. Can you ls -l /usr/bin/sshd?