Skip to content

Web Developer Blog

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

Author adminPosted on April 27, 2017February 2, 2019Categories Uncategorized

Post navigation

Previous Previous post: Force Strong Password on CentOS
Next Next post: Find Public IP

Categories

  • No categories












Web Developer Blog Proudly powered by WordPress