Log into each server as root (or admin if you disabled
direct root access).
- Edit /etc/hosts.allow
- Open a new line before "ALL : ALL : spawn (/usr/sbin/safe_finger
-l @%h | /bin/mail -s "Port Denial noted %d-%h" root) & : DENY":
For each IP address you want to allow, add the
following to /etc/hosts.allow (before the line noted):
sshd: xxx.xxx.xxx.xxx : ALLOW
Where xxx.xxx.xxx.xxx is the actual IP address you
want to grant access.
- Save the file
- Edit /etc/hosts.deny
Add the following line towards the very top (we have
it as the 1st line after the initial comments in our file):
sshd: ALL
- Save the file
IMPORTANT: Before you log off your current SSH
session, try to open another SSH session to the machine you just made
these settings on. If you cannot get into the system, then in your
already open SSH session, then comment out the lines you added.
Notes
According to Positive Software support, they use the
following IP addresses to provide support to your servers (as of
November 19, 2007
-- please put in netmask format.):
213.130.28.26
64.131.90.27
Also remember to include the IP address of your
control panel and other Parallels H-Sphere servers so they can talk with one
another via SSH.
References
Secure Configuration of SSHD
SSH
Communications Security Information
|