gamester88
gamester88_cu
全部博文(159)
2010年(39)
2009年(106)
2008年(14)
zhaiqi16
cynthia
52246852
ghsyeu
dj15621
lmt81858
笑倚春风
JenGuo
求上进
分类: LINUX
2009-06-09 11:58:48
[root@nihao ~]# more /etc/hosts.deny ## 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!# 下面是拒绝所有的ssh服务连接sshd: ALL : deny[root@nihao ~]# more /etc/hosts.allow ## hosts.allow This file describes the names of the hosts which are# allowed to use the local INET services, as decided# by the '/usr/sbin/tcpd' server.## 这里写允许的ip或者网段sshd: 192.168.0.230 :allow
上一篇:安装 vmware-tools与解决虚拟机时间过快或过慢的问题
下一篇:windows下修改host文件
登录 注册