Skip to content

Instantly share code, notes, and snippets.

@WimObiwan
Created June 12, 2020 20:26
Show Gist options
  • Save WimObiwan/ea90a970d25a6854df968eb6bffbf66e to your computer and use it in GitHub Desktop.
Save WimObiwan/ea90a970d25a6854df968eb6bffbf66e to your computer and use it in GitHub Desktop.
cat /var/log/auth.log /var/log/auth.log | grep 'authentication failure;' | sed 's/.*rhost=\([^ ]*\).*/\1/' | sort | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment