From f1aa54fe75e1e8d1bbae46c547a52eaccde933cb Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 14 Jul 2020 12:05:41 +0200 Subject: [PATCH] Use systemctl to restart services --- .../pages/infrastructure-services/OpenSSH.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system-administrators-guide/pages/infrastructure-services/OpenSSH.adoc b/modules/system-administrators-guide/pages/infrastructure-services/OpenSSH.adoc index d7df73f..5a83ea9 100644 --- a/modules/system-administrators-guide/pages/infrastructure-services/OpenSSH.adoc +++ b/modules/system-administrators-guide/pages/infrastructure-services/OpenSSH.adoc @@ -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.