DenyHosts
利用DenyHosts防止暴力破解
DenyHosts的安装和启动脚本
wget https://nchc.dl.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz
# 官网下载包安装
[root@www ~]# tar zxvf DenyHosts-2.6.tar.gz
[root@www ~]# cd DenyHosts-2.6
[root@www DenyHosts-2.6]# apt install python -y
[root@www DenyHosts-2.6]# python setup.py install
[root@www DenyHosts-2.6]# cd /usr/share/denyhosts/
[root@www denyhosts]# cp denyhosts.cfg-dist denyhosts.cfg //配置文件
[root@www denyhosts]# cp daemon-control-dist daemon-control //启动文件
[root@www denyhosts]# chown root daemon-control
[root@www denyhosts]# chmod 700 daemon-control
[root@www denyhosts]# ln daemon-control /etc/init.d/ #创建硬链接
[root@www denyhosts]# /etc/init.d/daemon-control start #以Daemon形式启动DenyHosts
配置文件详细解读
相关命令
最后更新于