Use systemctl to restart services

This commit is contained in:
Jakub Jelen 2020-07-14 12:05:41 +02:00 committed by pbokoc
commit f1aa54fe75

View file

@ -617,7 +617,7 @@ TrustedUserCAKeys /etc/ssh/ca_user_key.pub
Restart `sshd` to make the changes take effect:
+
----
~]# service sshd restart
~]#{nbsp}systemctl restart sshd.service
----
To avoid being presented with the warning about an unknown host, a user's system must trust the CA's public key that was used to sign the host certificates. In this example that is `ca_host_key.pub`.
@ -745,7 +745,7 @@ HostCertificate /etc/ssh/ssh_host_rsa_key-cert.pub
. Restart `sshd` to make the changes take effect:
+
----
~]# service sshd restart
~]#{nbsp}systemctl restart sshd.service
----
. On user's systems. remove keys belonging to hosts from the `~/.ssh/known_hosts` file if the user has previously logged into the host configured above. When a user logs into the host they should no longer be presented with the warning about the hosts authenticity.