Server Fault is a question and answer site for system and network administrators. 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

I have created following rc.{#}d structure; however my ssh server is not starting. I see

  • Kill -
  • /etc/rc0.d/K84ssh
  • /etc/rc1.d/K84ssh
  • /etc/rc2.d/K84ssh
  • /etc/rc4.d/K84ssh
  • /etc/rc6.d/K84ssh

  • Start -

    • /etc/rc3.d/S16ssh
    • /etc/rc5.d/S16ssh
share|improve this question

How did you create them? Manually? You can just use the following:

$ sudo update-rc.d ssh defaults

For more details, you can see: man update-rc.d. Of course, you need to have the startup script /etc/init.d/ssh. As these are just symbolic links.

share|improve this answer

The files in /etc/rc?.d are just symbolic links, pointing to files in /etc/init.d/. If you do not know what to do for restoring the startup scripts, just reinstall OpenSSH server:

sudo apt-get --reinstall install openssh-server

Your settings in /etc/ssh/sshd_config will be preserved.

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.