What is DenyHosts?
This is a python-script for the protection of ssh server, like fail2ban, but consumes
far less memory. The script parses the log file and finds failed login attempts and
prohibits login from these IP addresses.
Installation steps.
Installation process is simple and contains some steps:
1. Retrieve new lists of packages
sudo apt-get update
2. Installation DenyHosts:
sudo apt-get install denyhosts
If the process is successfully completed, you will see the information of the screen:
After installation you can add your IP address in whitelist:
sudo nano /etc/hosts.allow
and insert following string:
sshd: 12.34.45.678
Where “12.34.45.678” – your IP address
And restart denyhost:
sudo service denyhosts restart
Configuration denyhosts.
After the installation process, the DenyHosts is ready to work, but some
configuration options are noteworthy. All configuration values are in the file
/etc/denyhosts.conf
1. PURGE_DENY: removed HOSTS_DENY entries that are older than this
time.
Default value i…
This is a python-script for the protection of ssh server, like fail2ban, but consumes
far less memory. The script parses the log file and finds failed login attempts and
prohibits login from these IP addresses.
Installation steps.
Installation process is simple and contains some steps:
1. Retrieve new lists of packages
sudo apt-get update
2. Installation DenyHosts:
sudo apt-get install denyhosts
If the process is successfully completed, you will see the information of the screen:
After installation you can add your IP address in whitelist:
sudo nano /etc/hosts.allow
and insert following string:
sshd: 12.34.45.678
Where “12.34.45.678” – your IP address
And restart denyhost:
sudo service denyhosts restart
Configuration denyhosts.
After the installation process, the DenyHosts is ready to work, but some
configuration options are noteworthy. All configuration values are in the file
/etc/denyhosts.conf
1. PURGE_DENY: removed HOSTS_DENY entries that are older than this
time.
Default value i…