Linux SSH限制IP登录的安全策略方法

比如说你只允许10.0.0.2这个IP进入,其它都禁止:

vim /etc/ssh/sshd_config

添加一行:

allowusers root@10.0.0.2

注:root为你用来登入服务器的用户名

最后sshd重启

service sshd restart
相关的文章:

暂无评论

写评论