centos白名单(访问控制) /etc/hosts.allow

公司过等保,安全加固,系统白名单

修改 /etc/hosts.allow

vim /etc/hosts.allow
sshd:192.168.121.35:allow //只允许192.168.121.35登录

修改 /etc/hosts.deny

vim /etc/hosts.deny
sshd:ALL //开启白名单,只允许192.168.121.35登录

service sshd restart,重启sshd

对了,直接搜索 /etc/hosts.allow 会出现很多这样的文档。

本文 参考文档
具体介绍 参考文档

开源精神,允许转载。
请标明出处。

2020.07.10  楠有枝 于北京·海淀

你可能感兴趣的:(linux基础)