3 ms·
Why do people install fail2ban then disable password based authentication entirely? I legitimately don't understand the purpose. Also, they complain about log
by Someone1234 10y ago
Why do people install fail2ban then disable password based authentication entirely? I legitimately don't understand the purpose.
Also, they complain about log spam (from failed SSH attempts) this is one reason to move SSH to a different port. It does NOT increase security, but it DOES reduce log spam from bots trying for easy targets.
- e1ven 10y agoFail2ban can be used to block IPs based on any log file, not just SSH - I believe the author uses an Apache log in the example.
- geerlingguy 10y agoIt also has rules for mailers, and other utilities, which I often use just because they're nice and simple to work with.
- treerunner 10y agoI always change the ssh port to something other than 22. It has always seemed to work well for me for most automated attacks. Perhaps this is not advisable for some reason?
- carlisle_ 10y agoThere is a slight security concern to binding it to a port above 1024 in that a non-privileged user can bind to that port and MITM. Here is a good summary of the different options you have with ssh and choosing a port: http://serverfault.com/questions/619898/should-i-change-the-ssh-port-to-1024 http://serverfault.com/questions/619898/should-i-change-the-...
- supbpeerr 10y agoFrom experience, running ssh on non-default port have mostly reduced automated login attempts to 0, year after year.
- vacri 10y agofail2ban installed = less logspam, and never having to adjust default port with whatever tool is ssh'ing moving ssh port = less logspam, but now you have to specify your ssh port in every tool that uses it, and it's one more thing that other staff have to remember
- justinhj 10y agoHave you tried it both ways? some scripted attacks will try 22 find that it is open then spam it with attacks. If it's not open they will have to scan your ports then spam you with attacks