How to Reset the SSH Port from WHM?

How to Reset the SSH Port from WHM?

The default SSH port no of a server is 22, for security reasons it recommended to change to some other number. We can change the default port number by editing the SSH configuration file via server command line interface.  If in any case, you have changed the SSH port number to a non-default value and unfortunately you have forgotten it. However, you are able to access the WHM panel without SSH details and you can reset the SSH port number from WHM to the default value. In this tutorial let’s have a look into how we can reset the SSH default port from WHM.

1) Login to your WHM via non-SSL port ie, 2086.

How to Restore cPanel Accounts from WHM?

 

2) After that, access the following URL to reset your SSH configuration settings to default

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

How to Restore cPanel Accounts from WHM?

 

Replace the “serverip” with your server’s IP address or hostname, which you prefer to access the WHM panel.

3) Once the script is executed the SSH port number of your server will be reset to the default port.

How to Restore cPanel Accounts from WHM?

 

If port 22 is already in use for any other service then, another port will be opened for SSH and it will be displayed on the screen where you are executing the script.

Hence we have learned to reset the SSH port number from WHM.

If you need any further assistance please contact our support department.

  • 0

How to Enable Plaintext Authentication in Dovecot?

How to Enable Plaintext Authentication in Dovecot? Dovecot is an IMAP or POP3 server for...

Install Apache Tomcat using EasyApache4

Install Apache Tomcat using EasyApache4 The Apache Tomcat is an Apache module that provides a...

How to Enable Extended Logging in Exim

How to Enable Extended Logging in Exim The extended Exim logs in cPanel server will help you to...

Maximum number of connections from user+IP exceeded

Maximum number of connections from user+IP exceeded If you are getting an error like ‘ Error –...

How To Set Up Remote Access Key in WHM

How To Set Up Remote Access Key in WHM Remote Access Key is a cPanel feature that allows...