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 defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

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...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

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