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
|
|
|
You might be interested in fail2ban. |
|||||||||
|
|
Simply modify your /etc/ssh/sshd_config file; add
and restart sshd. |
|||
|
I use an iptables rule that limits SSH connections to no more than 10 per minute. After 10 connections (or attempts), new incoming connections from that IP are dropped, which is usually enough to make the would-be crackers go away.
|
|||||
|
|
Another dynamic connection blocker based on failed login attempts is DenyHosts. It functions similarly to fail2ban, but specifically targets ssh login attempts. The last time I set it up, I found it very easy to configure. |
|||
|
|