查看是否有人破解你的ssh密码

Redhat/Fedora系:

cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="$1;}'

Debian/Ubuntu系、其他系:

cat /var/log/auth.log|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="$1;}'

不看不知道,一看吓一跳:

我一个名不见经传的小站,也有无聊的人来破解啊,shit!

本文为悠然居(https://wordpress.youran.me/)的原创文章,转载请注明出处!

Leave a Reply

Your email address will not be published. Required fields are marked *