Quantcast
Channel: » Blog
Viewing all articles
Browse latest Browse all 25

How to secure your cPanel with SSH

0
0

People, I mean obviously the hackers try to use Port #22, so the best practise to secure your WHM/cPanels is to move SSH Access to the different ports, Here is how to do that in simple words without knowledge of special geek skill.

Step 1 : Login to your VPS server

Step 2 : Find the directory /etc/ssh/sshd_config

Step 3 : Change the line that says #Port 22 to a different port such as: Port 1678

Step 4 : Make sure to keep your current SSH session open when testing the new port so you can change back to port 22 if the new port doesn’t work.

Precautions :

You should always use SSHv2 only as SSHv1 is not secure. Make sure to change the line in /etc/ssh/sshd_config that says #Protocol 2,1 to Protocol 2.

You may also wish to set Shell Resource Limits for you users to prevent applications and scripts from using all up your resources and taking down your server. You can configure shell resource limits in /etc/security/limits.conf on most Linux systems.


Viewing all articles
Browse latest Browse all 25

Latest Images

Trending Articles





Latest Images