Linux统计机器上登陆失败的用户数量

sudo lastb |grep ssh |awk '{ count[$3]++} END{ for(ip in count) print ip, ": " count[ip]}' |sort -nrk 3
原文地址:https://www.cnblogs.com/imzye/p/7257201.html