ssh: limit overall login attempts and interactions

Additionally also disable any unnecessary/unused features by default.
This commit is contained in:
Mohammed Amar-Bensaber 2024-10-08 22:49:47 +02:00
parent ceeba484f6
commit 52ec354da9
Signed by: renken
GPG key ID: 1F2BB159B645E575

View file

@ -1,3 +1,20 @@
# Authentication
LoginGraceTime 2m
PermitRootLogin prohibit-password
StrictModes yes
MaxAuthTries 6
MaxSessions 10
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
PermitEmptyPasswords no
# Kerberos options
KerberosAuthentication no
# GSSAPI options
GSSAPIAuthentication no
# TODO: Confirm that this is not overridden by the global configuration file?
# X11 is not installed on this machine anyway.
X11Forwarding no