While login into some linux host with wrong password, the OS account get temporarily locked per pam_tally2 configuration.
top of page
To see this working, head to your live site.
Linux Account temporary locked after wrong password: ssh error “Permission denied, please try again.”
Linux Account temporary locked after wrong password: ssh error “Permission denied, please try again.”
1 answer0 replies
Like
Comments (1)
bottom of page
While gained access into the host, execute below pam_tally2 command to reset the temporarily lock:
# pam_tally2 -u oracle -r Login Failures Latest failure From oracle 1 02/25/21 12:23:56 xxx.net
Modify the sshd file for changing the lock_time (seconds) if neccessary.
# cat /etc/pam.d/sshd #%PAM-1.0 auth required pam_sepermit.so auth substack password-auth auth include postlogin auth required pam_tally2.so deny=5 onerr=fail lock_time=600 serialize ...