[enh] Use systemctl

This commit is contained in:
ljf (zamentur) 2018-06-11 15:43:32 +02:00 committed by GitHub
parent 8148d89d92
commit feaf58cfbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
```
---