shione/files/etc/ssh/sshd_config.d/custom.conf
Mohammed Amar-Bensaber 52ec354da9
ssh: limit overall login attempts and interactions
Additionally also disable any unnecessary/unused features by default.
2024-10-08 22:49:47 +02:00

20 lines
460 B
Text

# 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