Here is my password-auth file:
auth required pam_faillock.so preauth silent deny=5 unlock_time=900
auth required pam_faillock.so authfail deny=5 unlock_time=900
auth include password-auth-ac
account include password-auth-ac
password include password-auth-ac
session required pam_tty_audit.so disable=* enable=root
session optional pam_umask.so
session include password-auth-ac
Here is my system-auth file:
auth required pam_faillock.so preauth silent deny=5 unlock_time=900
auth required pam_faillock.so authfail deny=5 unlock_time=900
auth include system-auth-ac
account include system-auth-ac
password sufficient pam_unix.so remember=5
password include system-auth-ac
session required pam_tty_audit.so disable=* enable=root
session optional pam_umask.so
session include system-auth-ac
I also have a user logging with a password that locks after 5 successful logins.
All logs indicate the previous logins worked, but the 5th attempt locks the account.
I have no idea where to start looking for answers.
UPDATE:
using failock --user ftpweb
I have been able to identify when this error occurs. Using my default ssh options, it tallies a failed login before I enter the password. Using -o PreferredAuthentications=password -o PubkeyAuthentication=no
It occurs after the entering the password successfully.