Last active
October 25, 2017 14:45
-
-
Save absturztaube/75edec19a7b7a184dcf377012d7c3626 to your computer and use it in GitHub Desktop.
Gets a list of ips with number of failed login attempt on sshd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep "$(date +"%b %d")" /var/log/auth.log | grep sshd | grep -i "failed password" | sed -r "s/.*\s(([0-9]+\.){3}[0-9]+)\s.*/\1/g" | sort | uniq -c | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment