limiting ssh logins

Subhro subhro.kar at gmail.com
Sat Nov 13 04:33:33 GMT 2004


-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of dave
Sent: Saturday, November 13, 2004 9:22
To: freebsd-questions at freebsd.org
Cc: Drew Tomlinson
Subject: limiting ssh logins

Hello,
    I'm wondering if it's possible to use pam or perhaps tcp_wrappers to
limit how many ssh logins can be atempted? I'd like to kick off a user who
tries to log in repeatedly with the wrong password or tries x times within a
minute, my purpose is to slow down hacking atempts in situations where
public key authentication is not possible.
Thanks.
Dave.

If you are using ipfw as your firewall, you can simply add a limit rule to
port 22 (or whichever port ssh runs on). Refer to man ipfw.

Regards
S.


Subhro Sankha Kar
Block AQ-13/1, Sector V
Salt Lake City
PIN 700091
India
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5515 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041113/6f3c3baa/smime.bin


More information about the freebsd-questions mailing list