How to reset SSH port from WHM

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.

🙂
Enjoy!!!

Similar topic
Change SSH port of a server having Webmin

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

3 Responses

  1. Claudio says:

    Thank you very much. I have been looking for this solution for days!!!!! I am moving VPS to another company and the transfer tool will not work if the ports were not the same, after I applied your fix: http://yourserverip:2086/scripts2/doautofixer?autofix=safesshrestart worked perfectly!!!!!!! Thank you again!!

  1. January 3, 2014

    […] refer: How to reset SSH port from WHM How to change cpanel port through command line How to change the apache port via command line in […]

Leave a Reply

Your email address will not be published. Required fields are marked *