Secure Your Server Login In Linux
pam_tally2 module is used to lock user accounts after certain number of failed ssh login attempts made to the system
Lets Start Configuration :::
Use ‘/etc/pam.d/password-auth‘ configuration file to configure login attempts accesses. Open this file and add the following AUTH configuration line to it at beginning of the ‘auth‘ section.
auth required pam_tally2.so file=/var/log/tallylog deny=3 even_deny_root unlock_time=1200
Then Add>>>>>>>>>>>>
account required pam_tally2.so
How To RESET???
Verify: pam_tally2 --user=tecmint
Then RESET:
pam_tally2 --user=tecmint --reset