Comments on How to List Unsuccessful SSH Logins on Linux

This tutorial shows you how to identify and list unsuccessful SSH logins on the Linux shell.

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Steve-O

Install fail2ban and either 3 or 5 attempts from the same IP will block an account for an hour.

Setup ssh-keys and you can make that 1 attempt and 30 days for the block, since you'll never attempt a bogus login again.

Creating ssh-keys is 1 command:    $ ssh-keygen -t ed25519Pushing the public key to the remote system is 1 other command:    $ ssh-copy-id -i ~/.ssh/id_ed25519.pub username@remoteThat's it.

Don't use passwords after the first login.  Please.