top of page

Secure Your Server Login In Linux

  • SANTANU
  • Sep 19, 2016
  • 1 min read

Lock and Unlock SSH Failed Login:

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


 
 
 

Comments


MY FEATURED POSTS

Check back soon
Once posts are published, you’ll see them here.

FOLLOW US

  • Facebook Long Shadow
  • Google+ Long Shadow
  • LinkedIn Long Shadow
  • Twitter Long Shadow

I’M ALWAYS HAPPY

TO GET TO KNOW MY READERS AND SHARE INSIGHTS AND IDEAS. 

 

DROP ME A LINE 

Success! Message received.

Where we are in technology..

A BLOG BY SANTANU MONDAL

This is a non commercial web site

bottom of page