linux服务器限制IP访问

修改/etc/hosts.deny,在其中加入
sshd:ALL
修改:/etc/hosts.allow,在其中进行如下设置:
sshd:你的ip

猜你喜欢

转载自blog.csdn.net/weixin_38576764/article/details/79984225