连续3次以上通过ssh登录系统失败的IP
lastb -i -a | grep ssh | awk '{print $NF}' | uniq -c | awk '$1>3{print $2}'
将地址加入/etc/hosts.deny文件中
sshd:147.182.236.157
封掉暴力破解的ip
阅读 63
2022-02-09
连续3次以上通过ssh登录系统失败的IP
lastb -i -a | grep ssh | awk '{print $NF}' | uniq -c | awk '$1>3{print $2}'
将地址加入/etc/hosts.deny文件中
sshd:147.182.236.157
相关推荐
精彩评论(0)