發布時間: 2017-11-08 09:18:48
實驗結果:
[root@desktop1 ~]# ssh student@server1
Password:
Password:
Password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
[root@desktop1 ~]# ssh student@server1
Account locked due to 4 failed logins
設置:
[root@server1 ~]# cat /etc/pam.d/password-auth
auth required pam_tally2.so deny=3 unlock_time=180
account required pam_tally2.so
[root@server1 ~]# cat /etc/pam.d/system-auth
auth required pam_tally2.so deny=3 unlock_time=180
account required pam_tally2.so