连续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
微信扫一扫
连续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
相关推荐