#!/bin/bash
stty erase ^h
stty erase ^H
chmod
700 denyhosts_removeip.sh
cp
-a *
/tmp
cd
/tmp
tar
zxf DenyHosts-2.6.
tar
.gz
cd
DenyHosts-2.6
python setup.py
install
cd
/usr/share/denyhosts/
cp
daemon-control-dist daemon-control
chown
root daemon-control
chmod
700 daemon-control
cp
/tmp/denyhosts
.cfg .
cp
-a
/tmp/denyhosts_removeip
.sh .
echo
"/usr/share/denyhosts/daemon-control start"
>>
/etc/rc
.
local
cd
/etc/init
.d
ln
-s
/usr/share/denyhosts/daemon-control
denyhosts
chkconfig --add denyhosts
chkconfig --level 345 denyhosts on
echo
"127.0.0.1"
>>
/usr/share/denyhosts/allowed-hosts
echo
"你的IP"
>>
/usr/share/denyhosts/allowed-hosts
service denyhosts restart