Get rid of ssh brute force attacks
Posted: April 10th, 2008 | Author: paul | Filed under: howto | Tags: brute force, howto, iptables, linux, ssh | No Comments »I was looking for a solution to ban those ip that abuses my sshd processes using dictionary attack (some of them using romanian user accounts, just take a look at this link, from a slashdot article, and search for romania).
Having a look on google i have found this two methods:
- using denyhosts (through hots.deny) – http://howtoforge.com/preventing_ssh_dictionary_attacks_with_denyhosts
- using a patch for iptables (by using a new user-defined chain) – http://hostingfu.com/article/ssh-dictionary-attack-prevention-with-iptables
For me the easyest was by using denyhosts because it has rpms build already made for opensuse (link from opensuse’s wiki).

Recent Comments