我正在运行 CentOS 6.3 服务器,目前每 15 分钟左右从我的服务器收到一封标题为“来自 IP 的大量失败登录尝试”的电子邮件。
当然,配置下面的内容应该意味着只有使用(我的静态IP)的人才能尝试登录?
如果是这种情况,这些远程未知用户是在哪里尝试登录生成这些电子邮件的?
当前的安全步骤:
without-passwordStrictModes yesPasswordAuthentication nosshd_config
user@static.ip.address
Run Code Online (Sandbox Code Playgroud)
主机允许
ALL : <Static IP>
Run Code Online (Sandbox Code Playgroud)
主机拒绝
ALL : ALL
Run Code Online (Sandbox Code Playgroud)
iptables
iptables -I INPUT -s <Static IP> -p tcp -m tcp --dport 22 -j ACCEPT
iptables -I INPUT -p tcp -m tcp --dport 22 -j REJECT
Run Code Online (Sandbox Code Playgroud)