How to install denyhosts on Ubuntu Linux 18.04 LTS ( intrusion prevention security tool )
Here are the steps to install denyhosts on Ubuntu 18.04 LTS:
- Install the required dependencies:
sudo apt-get update sudo apt-get install python - Download the latest version of
denyhostsfrom the official website:wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.10/DenyHosts-2.10.tar.gz - Extract the tar archive:
tar xvf DenyHosts-2.10.tar.gz - Change to the extracted directory:
cd DenyHosts-2.10 - Install
denyhosts:sudo python setup.py install - Copy the sample configuration file to
/etc/denyhosts.conf:sudo cp config/denyhosts.cfg-dist /etc/denyhosts.conf - Start
denyhosts:sudo /usr/bin/denyhosts.py start - Verify that
denyhostsis running by checking its status:sudo /usr/bin/denyhosts.py status
denyhosts on your Ubuntu 18.04 LTS system. You can now configure it further according to your needs by editing the configuration file at /etc/denyhosts.conf.