168free 发表于 2011-3-23 14:46:51

请问自己被DenyHosts挡住怎么办

我安装好DenyHosts后, 登出ssh, 然后就进不去了,
可能自己被DenyHosts挡住了.
请问有无解决方法?

licess 发表于 2011-3-23 16:29:57

回复 1# 的帖子

通过控制面板的console进去,把黑名单里的ip删除

rogerlan 发表于 2011-3-26 20:11:41

不行的,删除后会自动添加ip的。

rogerlan 发表于 2011-3-26 20:12:43

老大,如何停掉denyhost?

rogerlan 发表于 2011-3-26 23:41:35

解决方法如下:
Step # 1: Stop DenyHosts

# /etc/init.d/denyhosts stop

Step # 2: Remove Your IP From /etc/hosts.deny

# vi /etc/hosts.deny

Delete your IP address. Save and close the file.

Step # 3: Remove Your IP From /usr/share/denyhosts/data Directory

Cd to /usr/share/denyhosts/data
# cd /usr/share/denyhosts/data

You need to edit the following files using vi and remove the lines containing the IP address. Save the file.

hosts
hosts-restricted
hosts-root
hosts-valid
users-hosts
If you've static IP address add to allowed-hosts file. Any IP address that appears in this file will not be blocked by default (consider this as a whilelist):
# echo '1.2.3.4' >> allowed-hosts

Step # 4: Start DenyHosts

# /etc/init.d/denyhosts start
页: [1]
查看完整版本: 请问自己被DenyHosts挡住怎么办