Use systemctl to restart services
This commit is contained in:
parent
b80ae1c303
commit
f1aa54fe75
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Reference in a new issue