欢迎光临IT网Linux学习频道

当前位置:主页 > TAG标签 > ssh安全设置
  • shd_config ssh安全设置 日期:2014-02-22 02:30:08 点击:161 好评:0

    1、只允许某个IP登录,拒绝其他所有IP 在 /etc/hosts.allow 写: sshd: 1.2.3.4 在 /etc/hosts.deny 写: sshd: ALL 用 iptables 也行: iptables -A INPUT -p tcp --dport 22 -j DROP iptables -A INPUT -p tcp --dport 22 -s 1.2.3.4 -j ACCEPT 2、禁止某个用...

    共1页/1条
推荐内容