See all SSH login attempts

By | 13 January 2016

Debian
View all failed login attempts
cat /var/log/auth.log | grep 'sshd.*Invalid'

View all successful logins
cat /var/log/auth.log | grep 'sshd.*opened'

RedHat/Centos
View all failed login attempts
cat /var/log/secure | grep 'sshd.*Invalid'

View all successful logins
cat /var/log/secure | grep 'sshd.*opened'