有没有安装第三方软件的configuration?
您可以轻松地使用iptables进行速率限制,这可以在不给机器提供完整防火墙的情况下完成。
代码是
# rate-limit connections to sshd iptables -A INPUT -p tcp --syn --dport 22 -m recent --name sshattack --set iptables -A INPUT -p tcp --dport 22 --syn -m recent --name sshattack --rcheck --seconds 60 --hitcount 3 -j LOG --log-prefix 'SSH REJECT: ' iptables -A INPUT -p tcp --dport 22 --syn -m recent --name sshattack --rcheck --seconds 60 --hitcount 3 -j REJECT --reject-with tcp-reset
这将只允许任何给定IP地址的两个连接,在60秒的滚动窗口中。 您需要小心将这些规则放在INPUT链的正确位置。
如果您有兴趣,请参阅我的写作了解更多信息。
不,我不知道。 openssh没有这样的事情。
你有什么
MaxStartups Specifies the maximum number of concurrent unauthenticated connections to the SSH daemon. Additional connections will be dropped until authentication succeeds or the LoginGraceTime expires for a connection. The default is 10.
但我不认为这是你要找的。