How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but unable to log into the server with the default port 22 or we don’t know the server’s port. Then, you can follow the step below to reset the server port from WHM:

1
. Log into WHM
2. Then, browse the following URL to reset your SSh configuration settings: 
    http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart
    Replace “serverip” with your server’s IP address.

After executing the script, default port 22 will set on your server. Now, you can log into your server through the port 22 and reset the configuration. If port 22 is already in use for any other service then, another port will be opened for SSH and it will be displayed in the screen where you are executing the script.
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to disable the php mail() function on cPanel with CloudLinux?

If your server installed cPanel with CloudLinux along alt-php and you want to disable php mail()...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

A fatal error has occurred Cannot write to cache directory /tmp

While accessing WebMail client I was getting an error as below - A fatal error has occurred...

requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the website operator

I was getting below error while installing Softaculous on the cpanel server -. requires the...

Forbidden. You don’t have permission to access /wp-content/uploads/file-name.pptx

While uploading the files .pptx and .ppt files from WordPress admin dashboard, I was getting the...

Powered by WHMCompleteSolution