In case your reboot your linux server and:
you have a problem with start SSH service.
Try to connect to your server localy or via web-terminal provided by your server provider.
Secondly, check if ssh service has started ps aux | grep ssh
, if not, try to start it manually with command sudo service ssh start
. If you see something like this: ssh.service: Unit entered failed state
. Try these steps:
cat /var/log/syslog | grep ssh
, and when you see: Missing privilege separation directory: /var/run/sshd
continue reading :),/usr/sbin/sshd -T
,/usr/sbin/sshd -ddd
in debugging mode, this will provide you with a detailed startup of the service.You’ll need to create this directory:
sudo mkdir -p /usr/sbin/sshd
-p
is an argument to the mkdir
command, it means “parents”, meaning mkdir
will create a directory and any parents that don’t already exist.Than you can start your SSH server:
sudo service ssh start
And that’s all.