April 2014
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

Categories

April 2014
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  

How to block ssh users after 3 failed login attempts using pam_tally2.so

ock user login after failed login attempts in Red Hat 6.x and CentOS 6.x

Earlier in RedHat based distro we used to setup pam_tally.so for locking the user login after some failed login attempts.

Now in Red Hat 6.x and CentOS 6.x we will use pam_tally2.so .

# cd /etc/pam.d # cp -p password-auth-ac password-auth-ac.bak […]