centos7 添加SSH登录 ip 黑/白名单

评论1,949

centos7 添加SSH登录 ip 黑/白名单

centos7 添加SSH登录 ip 黑/白名单

#  allow 允许:白名单

sshd:19.16.18.1:allow

#  deny   拒绝: 黑名单

sshd:19.16.18.2:allow

保存后,重启:

service sshd  restart
service  xinetd  restart

 

 最后更新:2022-6-21

发表评论