Centos设置SSH安全只允许用户从指定的IP登录
1、编辑配置文件
vi /etc/ssh/sshd_config
2、加入限制
AllowUsers root@x.x.x.x
3、重启服务
/bin/systemctl restart sshd.service
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
1、编辑配置文件
vi /etc/ssh/sshd_config
2、加入限制
AllowUsers root@x.x.x.x
3、重启服务
/bin/systemctl restart sshd.service
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。