Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
Thanks, this is the correct answer. The sshd in not present in ubuntu 14.04 server, i ran sudo service ssh restart and it work. – Ibn Saeed Jun 15 '14 at 7:42

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


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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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