SSHd server not starting at boot RHEL / CentOS 7

By default sshd server does not start in CentOS 7.
chkconfig command does not control ssh daemon any more.

Solution is to use systemctl:

> systemctl enable sshd

It produces following awkward result:
ln -s ‘/usr/lib/systemd/system/sshd.service’ ‘/etc/systemd/system/’

To check if SSH server is staring on boot (and if it is running):

> systemctl status sshd

sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; <strong>enabled</strong>)
   Active: active (running) since Mon 2014-11-03 18:43:56 GMT; 20min ago

Enabled – means it will start at boot time automatically.
Welcome to systemd world..

Leave a Reply

Your email address will not be published. Required fields are marked *