Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Simple steps to reset SSH port back to default port 22  (Read 2252 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
Simple steps to reset SSH port back to default port 22
« on: March 24, 2018, 08:17:47 pm »
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:
 
Code: [Select]
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 on the screen where you are executing the script.