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.

Was this answer helpful?

 Print this Article

Also Read

How to resolve the issue of WordPress site which downloads PHP files instead of parsing after cPanel migration?

After migrating the WordPress site on the cPanel server, the website was not loading, it was...

A DNS entry for 'domain_name' already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

While adding addon domain under cPanel, I was getting error as below - A DNS entry for...

How to change the primary IP address of a WHM/cPanel (centOS/RHEL) based servers?

1. Steps for WHM: I. Log into WHM >> Basic cPanel & WHM Setup II. Change the Primary...

ERROR: Connection dropped by IMAP server. Query: SELECT "INBOX"

If you get the following error while trying to connect to your webmail client: ERROR: Connection...

Response: 530 Login authentication failed Error: Critical error: Could not connect to server.

I was unable to connect to FTP using correct credentials with the below error message - Status:...

Powered by WHMCompleteSolution