Skip to content

Instantly share code, notes, and snippets.

@10sr
Last active August 29, 2015 13:57
Show Gist options
  • Save 10sr/9465133 to your computer and use it in GitHub Desktop.
Save 10sr/9465133 to your computer and use it in GitHub Desktop.
SSHd Configurations

/etc/ssh/sshd_config

Disable PasswordAuthentication and ChallengeResponseAuthentication to disable password authentication.

Protocol 2
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM no
RSAAuthentication no
# do not look up the remote host name: this will improve performance
UseDNS no

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment