1,安装fail2ban,首先安装一下epel-release
[root@localhost~]# yum -y install epel-release
[root@localhost~]# yum -y install fail2ban
2,启动fail2ban
[root@localhost~]# systemctl start fail2ban
3,修改防爆力破解的配置文件
[root@localhost~]# vim /etc/fail2ban/jail.d/jail.local
添加这些参数,保存退出
4,生效fail2ban
[root@localhost~]# fail2ban-client reload
5,在另一台主机上通过ssh访问即可