mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 01:21:33 -05:00
Even more SSHD Hardening
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
5eb1eea440
commit
3be6ad0817
@ -7,11 +7,13 @@ Ciphers aes256-gcm@openssh.com
|
|||||||
MACs -*
|
MACs -*
|
||||||
|
|
||||||
# Security hardening
|
# Security hardening
|
||||||
|
AuthenticationMethods publickey
|
||||||
AuthorizedKeysFile .ssh/authorized_keys
|
AuthorizedKeysFile .ssh/authorized_keys
|
||||||
Compression no
|
Compression no
|
||||||
DisableForwarding yes
|
DisableForwarding yes
|
||||||
LoginGraceTime 15s
|
LoginGraceTime 15s
|
||||||
MaxAuthTries 1
|
MaxAuthTries 1
|
||||||
|
PermitUserEnvironment no
|
||||||
PermitUserRC no
|
PermitUserRC no
|
||||||
StrictModes yes
|
StrictModes yes
|
||||||
UseDNS no
|
UseDNS no
|
||||||
|
Loading…
Reference in New Issue
Block a user