I would like to limit failure retries on my Fedora machine to 5. I think I can accomplish it with PAM. But was unable to to do this.

I have referred to this article to do this

http://www.puschitz.com/SecuringLinux.shtml

Please provide suggestions


Solution 1:

You might be interested in fail2ban.

Solution 2:

Simply modify your /etc/ssh/sshd_config file; add

MaxAuthTries 5

and restart sshd.