通过修改host文件来允许和禁止主机的访问 修改/etc/hosts.deny,加入”sshd:ALL” 修改/etc/hosts.allow,加入”sshd:192.168.0.1″(将192.168.0.1替换为你想试用的IP)