Skip to content

Instantly share code, notes, and snippets.

@yi-jiayu
Created September 19, 2016 05:51
Show Gist options
  • Save yi-jiayu/ec6f8f9cf0171d5a5f5834322517a239 to your computer and use it in GitHub Desktop.
Save yi-jiayu/ec6f8f9cf0171d5a5f5834322517a239 to your computer and use it in GitHub Desktop.
Displays a sorted list of users used in failed SSH login attempts
sudo cat /var/log/secure | grep invalid | awk '{ print $9 }' | sort | uniq -c | sort -bnr | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment