码迷,mamicode.com
首页 > 其他好文 > 详细

Remove ip from hosts.deny

时间:2019-03-13 16:34:37      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:rem   ice   users   ddr   star   from   line   hosts   use   

This worked for me on Centos. Follow the 8 steps below and you should be good to go.

Stop DenyHosts

# services denyhosts stop

Remove the IP address from /etc/hosts.deny

Edit /var/lib/denyhosts/hosts and remove the lines containing the IP address. Save the file.

Edit /var/lib/denyhosts/hosts-restricted and remove the lines containing the IP address. Save the file.

Edit /var/lib/denyhosts/hosts-root and remove the lines containing the IP address. Save the file.

Edit /var/lib/denyhosts/hosts-valid and remove the lines containing the IP address. Save the file.

Edit /var/lib/denyhosts/users-hosts and remove the lines containing the IP address. Save the file.

(optional) Consider adding the IP address to /var/lib/denyhosts/allowed-hosts

Start DenyHosts

# services denyhosts start

 

Remove ip from hosts.deny

标签:rem   ice   users   ddr   star   from   line   hosts   use   

原文地址:https://www.cnblogs.com/lotus-white/p/10523809.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!