ssh登录日志
CentOS
/var/log/secure
Debian
/var/auth.log
查看每个IP尝试次数数量
CentOS
cat /var/log/secure | grep "Failed password" | awk '{print $11}' | cut -d: -f1 | sort | uniq -c | sort -n
Debian
cat /var/log/auth.log | grep "Failed password" | awk '{print $11}' | cut -d: -f1 | sort | uniq -c | sort -n