Comment on How to harden against SSH brute-forcing?
cecilkorik@lemmy.ca 1 week ago
fail2ban is mandatory equipment for any ssh server accessible to the public especially on its default port. It’s highly configurable, but the default settings will do fine at making it statistically impossible for any user or password to be brute forced.
cron@feddit.org 1 week ago
I don’t really get the love for fail2ban. Sure, it helps keep your logs clean, but with a solid SSH setup (root disabled, SSH keys enforced), I’m not bothered by the login attempts.
sugar_in_your_tea@sh.itjust.works 1 week ago
You should be. Most of it’s noise, but if there’s a serious attack, you’ll appreciate clean logs.
I think fail2ban is nice as like a third or fourth layer of defense. In order of my priorities:
If you’re not going to do 3-5, at least change the default SSH port to cut down on log noise.