Skip to content

Instantly share code, notes, and snippets.

@fionn
Created July 12, 2022 16:32
Show Gist options
  • Save fionn/04cfb1d57c4dee0ccfabdddfcffce840 to your computer and use it in GitHub Desktop.
Save fionn/04cfb1d57c4dee0ccfabdddfcffce840 to your computer and use it in GitHub Desktop.
SSHd hardening
PermitRootLogin no
PasswordAuthentication no
KbdInteractiveAuthentication no
AllowAgentForwarding no
MaxAuthTries 1
MaxSessions 3
KexAlgorithms [email protected],curve25519-sha256,[email protected]
HostKeyAlgorithms ssh-ed25519,[email protected],[email protected],[email protected]
Ciphers [email protected]
MACs [email protected],[email protected]
PubkeyAcceptedAlgorithms ssh-ed25519,[email protected],[email protected],[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment