Debian – See all SSH login attempts

Guess I’m not the only one who have a lot of unauthorized login attempts via SSH on my Linux servers.
With a simple command, you can watch failed or successful login attempts in /var/log/auth.log.

#As root or via sudo, type this to see all failed login attempts

#If you want to see successful logins, type this

Anyways, the first thing you should do on a new server is to disable password logins, only allowing logins using private keys.
You can read about it here.

7 comments for “Debian – See all SSH login attempts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.