I have been using pam_tally2 to lock a user after certain number of failed attempts through ssh
auth required pam_tally2.so deny=3 unlock_time=600
account required pam_tally2.so
I have to tried to login through ssh,3 failed attempts is working fine not sure whether it is because of this
MAxAUthtries in sshd_config.
pam_tally2 -u test is showing
Can u help me on this issue?