Linux installation denyhosts prevent passwords from being hacked

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.