安装
1.wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh
2.bash fail2ban.sh
卸载
1.wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/uninstall.sh
2.bash uninstall.sh
查看被扫描情况
grep "Failed password for root" /var/log/auth.log | awk '{print $11}' | sort | uniq -c | sort -nr | more
我直接把公网监听ssh端口关了,用Zerotier打洞穿透,GG了去面板VNC救,天衣无缝。
直接用VNC得了,这么麻烦干嘛
关了密码登陆用密钥登陆不可能被爆破
我直接用密钥登录
@Just纱世里 #1 哈哈哈,终于有人和我一样了。另外,ftp、mysql、梯子等都通过zerotier连接,又方便又安全。
禁止root登录,万事大吉
直接没有公网IPv4
32位包含大小写数字特殊字符的随机密码不知道能不能爆破,一直用的密码登录。
禁止密码登录就好吧,没必要这样搞,不过作为蜜罐倒是不错
我一般都是禁root,开仅密钥登陆,没有被爆破过