Tag Archives: denyhosts centos 6

Install denyhosts to block ssh brute force CentOS 6


Install from epel or rpmforge repo, i’m install it from epel:
# yum --enablerepo=epel -y install denyhosts

-(Optional) If need to configure denyhosts, edit file denyhosts.conf, actually default configuration is fine..
# vi /etc/denyhosts.conf

-Start denyhosts service & make start on boot:
# service denyhosts start
# chkconfig denyhosts on

Continue reading