vim /etc/hosts.allow
sshd:192.168.31.109:allow //只允许192.168.31.109登录
vim /etc/hosts.deny
sshd:ALL //开启白名单,只允许192.168.31.109登录
sshd:192.168.31.109:allow //只允许192.168.31.109登录
sshd:ALL //开启白名单,只允许192.168.31.109登录
本文标题:CentOS 7下限制ip访问(白名单)
本文链接:https://www.haomeiwen.com/subject/ntwmnctx.html
网友评论