On RHEL 6.3 I would like to configure sshd to use pam where i've configured pam_tally2 for maximum password attempts. pam_tally2 works with sudo and su but not with sshd so that a failed ssh login will increment the failedlogin tally.
/etc/pam.d/sshd includes /etc/pam.d/password-auth
In /etc/ssh/sshd_config I have the following configuration.
I understand that PasswordAuthentication should be disabled, and this forces sshd to use PAM authentication, however for me, this is not the case because all authenitcation fails and I can't login at all.