Reset SSH port using WHM

We might face an issue sometimes where we are able to access WHM panel using the root logins, but can't access the server via SSH since the SSH port is different. Here we can reset the SSH port to the default one using some simple steps:

1.  Login to WHM using the root login credentials.

2. Replace the browser URL like the following:

https://serverip:2087/scripts2/doautofixer?autofix=safesshrestart

Replace “serverip” with your server’s IP address.

It may ask for root password again, if so, please provide it and wait for a few seconds and you are done.

Once it is successfully completed, please try accessing the server using SSH with the default port 22.

  •  
  • 150 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Backup and Restore cPanel Accounts via SSH

a. How to create a backup of a cPanel Account via SSH?   1. Log-in to the SSH as the Root...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

Change permissions using find command

On a Linux server, if you are in need of changing the permissions of a bulk amount of files or...

Change the time of your vps/dedi

It's very easy, you first need to remove the current time file rm /etc/localtime and replace it...