Linux · 2011-05-19

linux ssh限制IP登陆

/etc/hosts.allow 增加可以登陆的IP
sshd:IP:allow

/etc/hosts.deny 拒绝所有IP的ssh请求
sshd:ALL