4 ms·
For protecting against brute-force login attempts, I use sshguard [1] I really think this should be installed by default on distros like Ubuntu. [1] http://ww
by amelius 10y ago
For protecting against brute-force login attempts, I use sshguard [1]
I really think this should be installed by default on distros like Ubuntu.
[1] http://www.sshguard.net/ http://www.sshguard.net/
- codelitt 10y agoOut of curiosity, how does it compare to fail2ban?
- stevekemp 10y agoSeems more flexible, and has IPv6 support by default.
- takeda 10y agoIt also was more robust for me and simpler to configure. Though I switched from sshguard to fail2ban, because after I started blocking attacks on ssh, script kiddies started to brute fore passwords using other services (SMTP/IMAP/POP3 etc.) Edit: looks like they added ability to monitor other services, I guess I'll re-evaluate it again.
- MichaelGG 10y agoI can't see any benefit, what am I missing? Put SSH on a port that's not 22 and done, no more mass scanning. The only thing SSHGuard has ever done for me is to lock me out when I was accidentally using the wrong key.
- oofabz 10y agoIf SSH is on a non-standard port, it is still possible to brute-force access to the server. You will see fewer automated attempts but you are still vulnerable to a motivated attacker who port scans you and finds the SSH port. Such an attacker is less common than automated scans but is more of a threat. With Sshguard, you are no longer vulnerable to this type of attack at all, no matter which port you run SSH on.
- MichaelGG 10y agoBut brute forcing any reasonable password or key is so far-fetched as to not be something to even consider.
- oofabz 10y agoIf you can make hundreds of login attempts per second, and you can keep at it for days/weeks/years, you can get through some pretty big password dictionaries with lots of variants (e.g. password/p4ssword/passw0rd/p4ssw0rd/etc.).