linux ssh限制IP登陆

  1. /etc/hosts.allow 增加可以登陆的IP
  2. sshd:IP:allow
  3.  
  4. /etc/hosts.deny 拒绝所有IPssh请求
  5. sshd:ALL
1 1