查看root登录失败记录数:
cat /var/log/secure |grep 'Failed password for root' | wc -l
查看root登录失败的最后20条记录:
cat /var/log/secure |grep 'Failed password for root' | head -n 20
查看root登录失败记录数:
cat /var/log/secure |grep 'Failed password for root' | wc -l
查看root登录失败的最后20条记录:
cat /var/log/secure |grep 'Failed password for root' | head -n 20
评论回复