From feaf58cfbf2f3f8be3ce3c482f1091b579d621af Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 11 Jun 2018 15:43:32 +0200 Subject: [PATCH] [enh] Use systemctl --- security.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security.md b/security.md index b4dcf144..51beee0a 100644 --- a/security.md +++ b/security.md @@ -42,7 +42,7 @@ PasswordAuthentication no Save and restart SSH daemon. ```bash -/etc/init.d/ssh restart +systemctl restart ssh ``` --- @@ -68,7 +68,7 @@ yunohost firewall allow TCP 9777 Save and restart SSH daemon. Switch over to the new port by restarting SSH. ```bash -/etc/init.d/ssh restart +systemctl restart ssh ``` Then restart the iptables firewall and close the old port in iptables. @@ -117,7 +117,7 @@ Only users listed in the AllowUsers directive will then be allowed to connect vi Save and restart SSH daemon. ```bash -/etc/init.d/ssh restart +systemctl restart ssh ``` ---