Forum Discussion

JPrice_230829's avatar
JPrice_230829
Icon for Nimbostratus rankNimbostratus
Nov 09, 2015

Display a user's failed login attempt count SSH

Is there a way that I can automatically display the number of failed login attempts for an account upon successful login?

 

2 Replies

  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus

    Assuming you are talking about logging into the CLI, there is no counter that I'm aware of, just a log of successful/failed attempts. You can send the logs to splunk (or some equivalent collector) and write a dashboard to do what you want, however...or just write a local script to collect that data and send it somewhere in an automated fashion.

     

  • Thanks for your help. I've been investigating pam_tally2 but haven't been able to find a working configuration.