Skip to content

Instantly share code, notes, and snippets.

@etigui
Last active October 7, 2018 07:26
Show Gist options
  • Save etigui/9ffbf25cc6abe5c9bd08832664b12e98 to your computer and use it in GitHub Desktop.
Save etigui/9ffbf25cc6abe5c9bd08832664b12e98 to your computer and use it in GitHub Desktop.
View SSH Login Attempts

View your System’s Authorization Log

To view your systems authorization log simply type the following command in a terminal window:

$> cat /var/log/auth.log

View Failed SSH Login Attempts

To view all your failed login attempts type the following command into a terminal window:

$> cat /var/log/auth.log | grep 'Failed password'

View Successful SSH Login Attempts

To view all your failed login attempts type the following command into a terminal window:

$> cat /var/log/auth.log | grep 'Accepted password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment