How to allow SSH access to one IP and restrict form all other IPs.

Started by kunal.m, June 02, 2016, 02:33:34 PM

Previous topic - Next topic

kunal.m

Hi All,

We can deny SSH access to all other IP address except from our IPs.  In order to allow our IP address and deny all other ips. Follow the below steps.

Login into your WHM >> Security Center >> Host Access Control.

Here we can add in some rules to control who can access sshd.

Quote
Daemon             Access List                      Action                 Comments
sshd                  115.119.26.146               allow                   working ISPs
sshd                   ALL                                deny                   Deny all other ips

Only the IP 115.119.26.146 can access SSH

That's it ..!! :)