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.