Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Ive configured DenyHosts, now what?

configured DenyHosts
0
Posted

Ive configured DenyHosts, now what?

0

If you have several log files (eg. in your /var/log directory you have ssh server logs with .1, .2, … .n) due to log rotation then it is best to process the old files first. This can be done by invoking DenyHosts with the –file= flag: $ python denyhosts.py –file=/var/log/secure.log.1 Additionally, you can process several files at once: $ python denyhosts.py –file=/var/log/secure.log.1 –file=/var/log/secure.log.2 …. –file=/var/log/secure.n Note: You must run DenyHosts as root so that it can read /var/log/ files and update the /etc/hosts.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.