Skip to content

Instantly share code, notes, and snippets.

@joekir
Created May 16, 2017 06:38
Show Gist options
  • Save joekir/bc4cf1daa7c6755039e92db51a7aa525 to your computer and use it in GitHub Desktop.
Save joekir/bc4cf1daa7c6755039e92db51a7aa525 to your computer and use it in GitHub Desktop.
sshd hardened config
Port <some high port>
PermitRootLogin no
PubkeyAuthentication yes
IgnoreRhosts yes
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding no
PrintMotd no
PrintLastLog yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment