mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 09:31:34 -05:00
More hardening options
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
55db69f9e2
commit
70f007a264
@ -6,9 +6,20 @@ PubkeyAcceptedKeyTypes ssh-ed25519
|
|||||||
Ciphers aes256-gcm@openssh.com
|
Ciphers aes256-gcm@openssh.com
|
||||||
MACs -*
|
MACs -*
|
||||||
|
|
||||||
|
# Security hardening
|
||||||
|
AuthorizedKeysFile .ssh/authorized_keys
|
||||||
|
LoginGraceTime 15s
|
||||||
|
MaxAuthTries 1
|
||||||
|
StrictModes yes
|
||||||
|
|
||||||
|
## Use PAM for session checks here but authentication is disabled below
|
||||||
|
UsePAM yes
|
||||||
|
|
||||||
# Disabling unused authentication methods
|
# Disabling unused authentication methods
|
||||||
|
ChallengeResponseAuthentication no
|
||||||
PasswordAuthentication no
|
PasswordAuthentication no
|
||||||
PermitRootLogin no
|
PermitRootLogin no
|
||||||
|
KbdInteractiveAuthentication no
|
||||||
KerberosAuthentication no
|
KerberosAuthentication no
|
||||||
GSSAPIAuthentication no
|
GSSAPIAuthentication no
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user