Debian下安装denyhosts防止暴力破解SSH
1、安装denyhosts
#apt-get install denyhosts
2、配置Denyhosts
#nano /etc/denyhosts.conf
(如果没有编辑器nano,就安装一个apt-get install nano,很多时候发现debian强大的地方就是什么鸟东西他都可以apt-get安装)
其实默认配置我觉得足够了,修改下root的失败次数,默认的是1,一般修改成3-5就行了,DENY_THRESHOLD_ROOT = 3
还有这里HOSTNAME_LOOKUP=NO
用nano设置好以后CTR+O保存,记得回车一下,然后CTR+X退出
3、重启/etc/init.d/denyhosts restart
哈哈,,,还不错哦。文章,,,让我学习了。。
Well I guess I don't have to spend the weekned figuring this one out!
I love these articles. How many words can a wrosmdith smith?