Allow SSH from a specific Network
For security reason we need to specific a network to access your server.
add this:
sshd : 192.168.10.0/255.255.255.0, 172.16.10.0/255.255.255.0
In this example allow only network: 192.168.10.0/255.255.255.0, 172.16.10.0/255.255.255.0
$vi /etc/hosts.deny
add this:
sshd : ALL
Reload services
/etc/init.d/sshd reload
Done,
No comments:
Post a Comment