登入這次的主機操作
我事先下載好了
安裝
#rpm -ivh DenyHosts-2.6-python2.4.noarch.rpm
# cp daemon-control-dist daemon-control
# chown root daemon-control# chmod 700 daemon-control
#cp denyhosts.cfg-dist denyhosts.cfg
# vim denyhosts.cfg
找到
PURGE_DENY =
改成
PURGE_DENY = 1h
# vim denyhosts.cfg
找到
PURGE_DENY =
改成
PURGE_DENY = 1h
# cd /etc/init.d
# ln -s /usr/share/denyhosts/daemon-control denyhosts
# chkconfig --add denyhosts
# service denyhosts start


沒有留言:
張貼留言