Skip to content

Instantly share code, notes, and snippets.

@sbryans
Created February 9, 2024 15:30
Show Gist options
  • Save sbryans/5227e279c58bc384168c8090d77434ac to your computer and use it in GitHub Desktop.
Save sbryans/5227e279c58bc384168c8090d77434ac to your computer and use it in GitHub Desktop.
Show failed SSH attempts.
grep "Failed" /var/log/auth.log | awk '{print $11}' | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment