If you misconfigure your SSH settings and lock yourself out of your server, you can reset them from WHM using the following steps:

🛠️ Step 1: Access WHM via Non-Secure Port

Open your browser and go to WHM using port 2086 (non-SSL access):

http://serverip:2086

Example:

http://192.168.10.11:2086

🔄 Step 2: Run the AutoFix Script for SSH

Once logged into WHM, navigate to this URL to trigger the SSH reset:

http://:2086/scripts2/doautofixer?autofix=safesshrestart

Example:

http://192.168.10.11:2086/scripts2/doautofixer?autofix=safesshrestart

This will attempt to safely restart SSH with default working settings, allowing you to regain SSH access.

✅ Done!

You should now be able to connect via SSH again with default settings.

By admin