Comments on: Lock and Unlock User Account After Failed SSH Logins https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/ Sun, 17 Sep 2023 18:36:13 +0000 hourly 1 By: rav kav https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-58622 Sun, 17 Sep 2023 18:36:13 +0000 http://www.linuxtechi.com/?p=9442#comment-58622 i am using rhel 8.8.
i am able to get users locked out after 3 unsuccessful login attempts using “su – kav”.
but ssh is not getting user locked out.
ssh kav@192.168.3.144

I am using AuthSelect to manage system-auth/password-auth. Also using corresponding files in /etc/security/pwquality.conf + pwhistory + faillock.conf.

]]>
By: Kishorekarthik https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-55205 Fri, 23 Jun 2023 12:30:25 +0000 http://www.linuxtechi.com/?p=9442#comment-55205 Can you also please update for Ubuntu 22.04 LTS

]]>
By: macha srinath https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-47526 Mon, 02 Jan 2023 05:25:14 +0000 http://www.linuxtechi.com/?p=9442#comment-47526 it’s not working for 1hour

]]>
By: Bastiaan https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-23544 Tue, 03 Aug 2021 16:02:08 +0000 http://www.linuxtechi.com/?p=9442#comment-23544 It is better to disable password login all together in ssh, use key based login instead

]]>
By: Pradeep Kumar https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-23135 Fri, 04 Jun 2021 03:03:48 +0000 http://www.linuxtechi.com/?p=9442#comment-23135 In reply to Oriol.

Hi Oriol,

It would be in the same line. By doing so , we are implementing the same rule even for root user.

]]>
By: Oriol https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-23131 Thu, 03 Jun 2021 13:49:25 +0000 http://www.linuxtechi.com/?p=9442#comment-23131 Thank you Pradeep, great article, but I believe “even_deny_root root_unlock_time=600” is not a new line but the continuation of the previous (additional parameters). Maybe that’s what you meant, but it is not very clear.

]]>
By: Irfan https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-21585 Tue, 01 Sep 2020 19:23:55 +0000 http://www.linuxtechi.com/?p=9442#comment-21585 do you know how can i set max login limits for a specific group in linux?

]]>
By: Alan https://www.linuxtechi.com/lock-user-account-incorrect-login-attempts-linux/#comment-18026 Wed, 18 Dec 2019 15:47:12 +0000 http://www.linuxtechi.com/?p=9442#comment-18026 Very clear explanation. Thank you!

]]>