4 ms·
For me I just don't like seeing /var/log/auth.log being filled with 100s of lines of: Failed password for root2 from 82.192.86.44 port 44990 ssh2 Failed pa
by smtddr 13y ago
For me I just don't like seeing /var/log/auth.log being filled with 100s of lines of:
Failed password for root2 from 82.192.86.44 port 44990 ssh2
Failed password for admin from 82.192.86.44 port 44990 ssh2
Failed password for sysdb from 82.192.86.44 port 44990 ssh2
Failed password for scott from 82.192.86.44 port 44990 ssh2
(Yes, that IP has scanned my machine before)
- Piskvorrr 13y agoAnd that's exactly what denyhosts is for. You'll see this line a few initial times, then the banhammer springs into action. (It's fully configurable - the number of failed attempts, the length of the autoban, etc.)
- throwaway2048 13y agountil one of the millions of other compromised IPs begins hammering your machine minutes later..
- Moru 13y agoThat's the whole point. The ban-hammer in this case is automatic and will ban that one too after five attempts or whatever.
- throwaway2048 13y agoit still doesn't prevent your logs getting filled up with crap is my point.
- Piskvorrr 13y agoPreventing logs from filling up is quite a cosmetic issue. Making the box hard to crack is certainly more relevant. Note that I'm not advocating against a port change; just saying that it's the very last of available options, as it's essentialy security-by-obscurity, and thus only gives you a feeling of higher security (due to less spam in the logs).
- danielweber 13y agoMaking security logs usable can (note the word) be a very important part of a security setup. Lots of people don't have the bandwidth to pay attention to noisy log files to look for anomalies.
- moe 13y agoYou're missing the point. One attempt is enough when there's a pre-auth exploit.
- pwg 13y agoThere is also ssh-faker: http://www.pkts.ca/ssh-faker.shtml http://www.pkts.ca/ssh-faker.shtml Which would prevent even that first password failure attempt from occurring.
- supergauntlet 13y agoSending a password over telnet seems like a bad idea..
- moe 13y agoUnfortunately one attempt is enough when there's a pre-auth vulnerability. Your ban-hammer doesn't help you there.