Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
a050849cd9
@ -14,13 +14,12 @@
|
|||||||
|
|
||||||
* For local server:
|
* For local server:
|
||||||
* ```
|
* ```
|
||||||
PubkeyAuthentication yes # only ssh-key
|
|
||||||
|
|
||||||
PermitRootLogin no # only sudo and su
|
PermitRootLogin no # only sudo and su
|
||||||
Match Host 192.168.5.*,127.0.0.1
|
PubkeyAuthentication yes # only ssh-key
|
||||||
PermitRootLogin yes # root only local
|
|
||||||
|
|
||||||
PasswordAuthentication no
|
PasswordAuthentication no
|
||||||
|
|
||||||
|
Match Host 192.168.50.*,127.0.0.1
|
||||||
|
PermitRootLogin yes # root only local
|
||||||
Match User root
|
Match User root
|
||||||
PasswordAuthentication yes # root auth only password from local
|
PasswordAuthentication yes # root auth only password from local
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user