DenyHosts
DenyHosts is a program written in the Python language that parses the sshd log file (/var/log/secure) and logs the IP to the/etc/hosts.deny file when a duplicate attack is found, thus achieving the function of the auto-screen IP.
Installation and Configuration
wget http://soft.vpser.net/security/denyhosts/DenyHosts-2.6.tar.gz tar-zxvf denyhosts-2.6.tar.gz CD DenyHosts-2.6 python setup.py Install (note that Python version cannot be greater than 3.0) Cp/usr/share/denyhosts/denyhosts.cfg-dist /usr/share/denyhosts/denyhosts.cfg Change the configuration file denyhosts.cfg change the cp/usr/share/denyhosts/according to the actual situation Daemon-control-dist /usr/share/denyhosts/daemon-control chown Root/usr/share/denyhosts/daemon-control start denyhosts /usr/share/denyhosts/daemon-control start setting boot command/usr/share/denyhosts /daemon-control start write to/etc/rc.local after the installation is successful check in for a few hours/etc/hosts.deny
Linux installation denyhosts prevent passwords from being hacked