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