SSH Hardening
Enable passwordless Authentication
PubkeyAuthentication yesDisable Password Authentication
PasswordAuthentication noDisable Empty Passwords
PermitEmptyPasswords noDisable Root Login
PermitRootLogin noDefult SSH Port
Port 12345Allow Users and Groups**
Disable X11 Forwarding
Disable Gateway Ports
Disable PermitUserEnvironment
Disable Weak Cryptographic Algorithims
Regenerate Host Keys
Disable Host Keys
Disable Small Diffie-Hellman Key Sizes
Disable SSHv1
Last updated