Changing the SSH port on cPanel Servers

To change the SSH port number login as root, and edit /etc/ssh/sshd_config

Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file.

Once done, run:

/etc/init.d/sshd restart

Now start a new SSH session (don’t close your existing one), to make sure that you can get in.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 How to Install ClamAV Antivirus on my cPanel

To install ClamAV, simply log into WHM control panel, go to the cPanel section and click...

 Manually setup your name server IPs on a cPanel server

This tutorial describes how to manually setup your name server IPs on your cPanel server Edit...

 Security of CPANEL accounts

Well there is much ways to secure your dedicated server or isolate the accounts from each others...