mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[enh] Use systemctl
This commit is contained in:
parent
8148d89d92
commit
feaf58cfbf
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
---
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue