Skip to content

Instantly share code, notes, and snippets.

@goreilly
Created December 21, 2015 19:06
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 goreilly/f118f0110d2dc74ebd68 to your computer and use it in GitHub Desktop.
Save goreilly/f118f0110d2dc74ebd68 to your computer and use it in GitHub Desktop.
sshd_config
# When someone tries to login as root...
Match User root
# Denys all access except root@10.0.0.10
AllowUsers root@10.0.0.10
# See: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/sshd_config.5?query=sshd%5fconfig&sec=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment