Server security DenyHosts prevents SSH brute force cracking

wget http://soft.vpser.net/security/denyhosts/DenyHosts-2.6.tar.gz

 

tar zxvf DenyHosts-2.6.tar.gz

 

cd DenyHosts-2.6

 

echo "" > /var/log/secure && service rsyslog restart

 

python setup.py install

 

cd /usr/share/denyhosts/

 

cp denyhosts.cfg-dist denyhosts.cfg

 

cp daemon-control-dist daemon-control

 

chown root daemon-control

 

chmod 700 daemon-control

 

./daemon-control start

 

echo "/usr/share/denyhosts/daemon-control start" >> /etc/rc.local

 

echo "222.214.54.69" >>  /usr/share/denyhosts/allowed-hosts 

 

DenyHosts:/etc/init.d/denyhosts

  • 384 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

iptables block BT/PT/SPAM (spam) and custom port/keywords One-click script

System Requirements CentOS 6+ / Debian 6+ / Ubuntu 14.04 +   Recommend Debian 8 x64, this is...

Linux Change password login method To log in safely with Key key to avoid password cracking by brute force

First make sure your system has openssl installed   openssl -V   # Under normal...

Linux modify the default SSH port 22 to avoid brute force password cracking

To be safe, we first add an SSH port and add the corresponding firewall rules, and then try to...

linux ssh login with secret key and disable password login

ssh-keygen -t rsa #-t means encryption method #The save path and short password confirmation will...

Powered by WHMCompleteSolution