3 ms·
SSH key based auth does not use certificates. In the case of key-based-auth only, fail2ban is pointless.
by sneak 11y ago
SSH key based auth does not use certificates.
In the case of key-based-auth only, fail2ban is pointless.
- Xorlev 11y agoI wouldn't say pointless. It wastes an attacker's time if nothing else, otherwise you're essentially allowing that attacker to continue interacting with your server, and perhaps SSH isn't their only target.
- muppetman 11y agoI disagree. I run it because I drop all traffic from the /24 the scan comes from. Harsh, yes, but tough luck. It cuts down on unwanted network traffic.
- sneak 11y agoThat's a pretty significant denial of service you open yourself up to. If someone shows up bruteforcing you from randomly allocated AWS or Digital Ocean cloud instance public IPs that happen to land in the same /24 as other AWS- or DO-hosted services (Heroku comes to mind, but also any other monitoring, log aggregation, analytics, data processing, et c) your machine depends on, they've convinced your system to cut connectivity to them. Not the best setup...
- viraptor 11y agoActually it can use certificates. Not X509, but still simplified ones.
- vacri 11y agofail2ban also reduces spam in your auth log and prods the bot to move along to the next target.
- bigiain 11y agoIt can quite easily protect against things other than failed ssh attempts - I used to regularly configure it to blackhole IPs failing to log in correctly to WordPress backends... Anything else the box does that uses some form of authentication that writes out failures to a log file can be hooked up to fail2ban.