Skip to content

Instantly share code, notes, and snippets.

@abrahamfast
Created February 12, 2019 20:32
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 abrahamfast/4a4aedc7230bbe5a67173d141820305d to your computer and use it in GitHub Desktop.
Save abrahamfast/4a4aedc7230bbe5a67173d141820305d to your computer and use it in GitHub Desktop.
zgrep ssh auth fails
zgrep sshd /var/log/auth.log* | grep rhost | sed -re 's/.*rhost=([^ ]+).*/\1/' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment