upd: ssh.md
This commit is contained in:
parent
a050849cd9
commit
282b9a3198
@ -6,8 +6,8 @@
|
||||
* Access for VPS:
|
||||
* ```
|
||||
PubkeyAuthentication yes
|
||||
PasswordAuthentication no # only ssh-key
|
||||
|
||||
PasswordAuthentication no
|
||||
Match User root
|
||||
PasswordAuthentication yes
|
||||
```
|
||||
@ -15,8 +15,8 @@
|
||||
* For local server:
|
||||
* ```
|
||||
PermitRootLogin no # only sudo and su
|
||||
PubkeyAuthentication yes # only ssh-key
|
||||
PasswordAuthentication no
|
||||
PubkeyAuthentication yes
|
||||
PasswordAuthentication no # only ssh-key
|
||||
|
||||
Match Host 192.168.50.*,127.0.0.1
|
||||
PermitRootLogin yes # root only local
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user