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
link|improve this question
feedback

2 Answers

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.

link|improve this answer
feedback

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.

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.