1

I use a VPS with Ubuntu 10.04. After I performed "apt-get upgrade", the ssh daemon stopped working and does not automatically start when I restart my server. I have only access to files (edit, create delete etc.) and no shell access. Could you please help me out with setting up SSH Daemon autostart? Thank you very much.

Paris
  • 205
  • 1
  • 5
  • 11
  • maybe this could be handy: http://blog.roberthallam.org/2010/06/sshd-not-running-at-startup – maniat1k Feb 06 '12 at 14:21
  • What happens when you type `sudo invoke-rc.d ssh start` from the console of the server? – grifferz Jul 07 '12 at 10:10
  • 1
    Does this answer your question? [SSH Server stops working after reboot, caused by missing /var/run/sshd](https://askubuntu.com/questions/1109934/ssh-server-stops-working-after-reboot-caused-by-missing-var-run-sshd) – pa4080 Mar 04 '22 at 22:42

1 Answers1

0

Try editing /etc/init.d/rc.local and add to the bottom:

sshd &

Then restart the server.

jokerdino
  • 41,000
  • 24
  • 132
  • 201
tom
  • 1
  • 1
    This is definitly not the standard solution. I think it would be better to find out why the daemon does not automatically start. – lumbric Jul 07 '12 at 09:20