centos 7限制远程登录的端口、IP、用户

限制端口 在/etc/ssh/sshd_config中   限制IP 要求: 只允许 192.168.0.1 和 192.168.0.10 登陆 其他全部禁止 实现: vim /etc/hosts.allow //增加如下内容 sshd: 192.168.0.1, 192.168.0.10 vim /etc/hosts.deny //增加如下内容 sshd: ALL 要求: 只限制192.168.
相关文章
相关标签/搜索