removed more security bs
All checks were successful
Deployment / deploy-docker (push) Successful in 43s
All checks were successful
Deployment / deploy-docker (push) Successful in 43s
This commit is contained in:
@@ -26,20 +26,11 @@ PasswordAuthentication no
|
|||||||
ChallengeResponseAuthentication no
|
ChallengeResponseAuthentication no
|
||||||
UsePAM yes
|
UsePAM yes
|
||||||
|
|
||||||
## Disable root login
|
|
||||||
#PermitRootLogin no
|
|
||||||
|
|
||||||
# Key-based auth only
|
# Key-based auth only
|
||||||
PubkeyAuthentication yes
|
PubkeyAuthentication yes
|
||||||
AuthorizedKeysFile .ssh/authorized_keys
|
AuthorizedKeysFile .ssh/authorized_keys
|
||||||
|
|
||||||
# Timeouts and limits
|
|
||||||
ClientAliveInterval 300
|
|
||||||
ClientAliveCountMax 2
|
|
||||||
MaxAuthTries 3
|
|
||||||
MaxSessions 3
|
|
||||||
LoginGraceTime 30
|
|
||||||
|
|
||||||
# Disable unused auth methods
|
# Disable unused auth methods
|
||||||
HostbasedAuthentication no
|
HostbasedAuthentication no
|
||||||
PermitEmptyPasswords no
|
PermitEmptyPasswords no
|
||||||
|
|||||||
Reference in New Issue
Block a user