On a fresh EC2 instance running Ubuntu, I see that there's no /etc/init.d/sshd file. I tried

sudo apt-get install openssh-server

And it shows that openssh-server is already the newest version. How do I get the /etc/init.d/sshd file?

link|improve this question
feedback

3 Answers

On my Ubuntu installation it's /etc/init.d/ssh

Try

dpkg -L openssh-server | grep init.d
link|improve this answer
feedback

Maybe they switched the ssh service over to Upstart config files. Look in /etc/init/.

link|improve this answer
feedback

Ubuntu is now using Upstart to do the init and /etc/init.d/ job. Instead of writing /etc/init.d/sshd $ACTION you are now supposed to write service ssh restart or just restart ssh. Note that it is called ssh, not sshd.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.