Skip to content

Instantly share code, notes, and snippets.

@jadia
Last active November 24, 2018 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadia/a7d7dadaa4a8301f22b88120bed72cec to your computer and use it in GitHub Desktop.
Save jadia/a7d7dadaa4a8301f22b88120bed72cec to your computer and use it in GitHub Desktop.
Tips to prevent unauthorized SSH login to your server
  • change your ssh port (common)

  • drop packets from unknown IP address if you have a reliable source range.

  • add multi factor authentication

  • port knocking

  • scheduled firewall/service (only run ssh when you need it, emergency access via console)

  • install fail2ban to reduce repeat offenders

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