Forget SSH port

Did you forget SSH port and try to reset it via WHM, Use the following  SSH configuration settings on WHM.

 

Login to your WHM on a non secure port that is : 2086
For example : http://serverip:2086

Then browse the URL to reset the SSH configuration settings :

http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart

After running the script, the default port 22 will reset on your cpanel SSH configuration. You can login SSH and reset it.

 

How to change the SSH port on cPanel Servers?

To change the SSH port on cPanel server.  Login via root password and edit the following file.

vi /etc/ssh/sshd_config

Find the line that says Port 22 and change 22 to any number between 1024->65535  and save the file.

Once done, run:

/etc/init.d/sshd restart

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installation of cpanel

Cpanel Installation (Centos 6x)1- Requiremnets A fresh and running VPS or dedicated CentOS 6.x...

IS My site is down

IS My site is downDear Valuable ClientsMost Coman issues.1- My site is not open2-server is down3-...

Understanding Linux CPU Load - when should you be worried

Understanding Linux CPU Load - when should you be worriedMost people have an inkling of what the...

Installation of firewall(CSF)

Installation ============ Installation is quite straightforward: cd /usr/src rm -fv csf.tgz...

ClamAV scan from command line on whm server

A - How to run clamscan to particular user account in cpanel server ?...

Powered by WHMCompleteSolution