Home > SSH > Block SSH Login After Several Attempts

yum install fail2ban
service fail2ban start
chkconfig fail2ban on

vim /etc/fail2ban/fail2ban.conf
logtarget = /var/log/fail2ban.log

Comment the below line to disable email notification.
# sendmail-whois[name=SSH, dest=root, [email protected]]

Reference:
http://www.vixual.net/blog/archives/252



Flag Counter