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:

[code]
> systemctl enable sshd
[/code]

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

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

[code]
> systemctl status sshd

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

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 *