如题。用 hosts 针对的是所有用户。 貌似可以用配置 /etc/ssh/sshd_config 方式去限制。 貌似也可以配置 iptables 去限制。 但不知哪种方法更好?该如何配置。能否详细讲解?谢谢!
hosts ip iptables centos
针对LZ提出的需求,建议用sshd_config,iptables不适合。 配置:AllowUsers wangshuo@172.31.11.237 注意修改完毕后重启服务:service sshd restart
iptables 设置问题
CentOS6.3服务器 设置只能中国IP登录
linux hostname和host啥区别?
NAT 和 DHCP 的区别
CentOS iptables规则
iptables 端口映射获取不到访问者IP地址。