vi /etc/pam.d/sshd
#%PAM-1.0auth required pam_tally2.so deny=3 unlock_time=600 even_deny_root root_unlock_time=1200
查看错误登录次数:pam_tally2 -u root
pam_tally2 -u root --reset