How to reset SSH port from cPanel/WHM server?

If you forgot SSH port or SSH shell is not accessible because of a broken configuration or anything else or SSH service is not restarting properly then you can easily find a workaround in order to correct the problem and regain access to your server via SSH.

Log into WHM control panel as the root user

Access the following URL to reset your SSH configuration settings to default

https://server001.hostname.com:2087/cpsess479423/scripts2/doautofixer?autofix=safesshrestart

The script can be started by adding “/scripts2/doautofixer?autofix=safesshrestart” to the end of your WHM URL and should look something like above.

Now, you can SSH into your server through port 22 and correct your configuration for further use.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...