December 2018
Beginner
826 pages
22h 54m
English
Now that we've been through and changed a few common settings, we're going to have a quick look at what happens when you restart the SSH daemon.
SSH's systemd unit file will look similar to this, though your system may vary:
[vagrant@centos2 ~]$ cat /etc/systemd/system/multi-user.target.wants/sshd.service [Unit]Description=OpenSSH server daemonDocumentation=man:sshd(8) man:sshd_config(5)After=network.target sshd-keygen.serviceWants=sshd-keygen.service[Service]Type=notifyEnvironmentFile=/etc/sysconfig/sshdExecStart=/usr/sbin/sshd -D $OPTIONSExecReload=/bin/kill -HUP $MAINPIDKillMode=processRestart=on-failureRestartSec=42s[Install]WantedBy=multi-user.target
By default, we can see that the binary used is /usr/sbin/sshd with ...