I faced this problem when I had to change the instance type of one of my EC2 instances in AWS. I had to stop the instance, change the instance type, then restart it. But when the system was up and running, I couldn’t access my cPanel, WHM, and the site itself.
Running this URL in the browser did the trick:
Open browser and enter below in your address bar:
🕸️
http://yourdomain.com:2086/scripts2/doautofixer?autofix=safesshrestart