Sunday, June 29, 2008

Restricting SSH for only certain IPS:

For IPS that are ONLY allowed to connect to SSH, add the following to:
/etc/hosts.allow

sshd: ALL EXCEPT 24.155.140.36, 70.84.214.90, 24.84.46.248, 203.193.136.61 : DENY

You can add/subtract any ips here.

No need to restart ssh. Only those IPS listed here will respond to SSH!

No comments: