linux限制ssh遠(yuǎn)程控制訪(fǎng)問(wèn)ip方法
/etc/hosts.deny 內(nèi)容如下:
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
all:all
/etc/hosts.allow 添加能夠訪(fǎng)問(wèn)的ip
設(shè)置好后,要重新啟動(dòng)
# /etc/rc.d/init.d/xinetd restart
# /etc/rc.d/init.d/network restart
聯(lián)系客服