Skip to content

Instantly share code, notes, and snippets.

@ardislu
Last active November 8, 2021 05:32
Show Gist options
  • Save ardislu/2255295888248b89d956c119d6967527 to your computer and use it in GitHub Desktop.
Save ardislu/2255295888248b89d956c119d6967527 to your computer and use it in GitHub Desktop.
View logged invalid login attempts on Ubuntu.
#!/usr/bin/env bash
sudo grep 'Invalid user' /var/log/auth.log | less -N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment