请教,设计SSH只有218.108.*.*的IP可以连接是不是这样?

由 thunderbird 在 07-07-2003 20:08 发表:

*请教,设计SSH只有218.108.*.的IP可以连接是不是这样?

首先,在/etc/hosts.deny加入一行:

ALL:ALL

在hosts.allow中加入:

sshd:218.108.

有可以了???

请指教,谢谢…………………


由 thunderbird 在 07-08-2003 12:02 发表:


顶一下啦!


由 jxwaxqb 在 07-08-2003 12:51 发表:


host.deny好像不用改,hosts.allow添加两行:

sshd:218.108.0.0:allow

sshd:all:deny


我爱Cisco,我更爱Linux。


由 thunderbird 在 07-08-2003 12:57 发表:


小弟刚刚试了,用:

首先,在/etc/hosts.deny加入一行:

ALL:ALL

在hosts.allow中加入:

sshd:218.108.

也达到了同样的效果,现在想请教一下各位前辈,怎么样才是标准的设置??

还是:

host.deny好像不用改,hosts.allow添加两行:

sshd:218.108.0.0:allow

sshd:all:deny

("好象"二个字让我有点怕怕……)


由 jxwaxqb 在 07-08-2003 15:48 发表:


很久没用了所以才加了“好像”。 ^_^

两个方式都可以。看个人习惯而定。


我爱Cisco,我更爱Linux。


由 thunderbird 在 07-08-2003 16:15 发表:


听说用了,服务器可以

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus