Lukáš Mešťan

Software engineer with a background in full-stack Web development & Open Source Enthusiast.


SSH was not starting correctly on system startup

- 1 min

Problem

In case your reboot your linux server and:

you have a problem with start SSH service.

As first, find error

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:

Solution is simple

You’ll need to create this directory:

sudo mkdir -p /usr/sbin/sshd

Than you can start your SSH server:

sudo service ssh start

And that’s all.