August 20th, 2002, 14:59
How do i only allow some ip address to connect to my sshd? I want to allaow a few.

August 20th, 2002, 15:05
There are several ways to do this, I personally prefer to do this through pf. Dropping a rule in your pf file, something to the effect of.

pass in quick inet proto tcp from IpToAllow/32 to any port = ssh keepstate

Doing this will allow you to connect from the specified ip and will disallow others from even detecting that you're running ssh.

There are other ways to accomplish this as well, this just happens to be the method I prefer. Good Luck let us know if you need more help!