Home Linux Basics How to Reset Default SSH Port for cPanel Servers?

How to Reset Default SSH Port for cPanel Servers?

by SupportPRO Admin

If you corrupt the SSH settings on your server and lock yourself out of ssh, then you can reset the SSH configuration settings from WHM by following the steps below:

1. Login to your WHM on a non-secure port that is: 2086
For example http://serverip:2086
2. Then browse the URL to reset the SSH configuration settings: http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart

After running the script, the default port 22 will open up and after logging in the server via ssh we can edit the config file of sshd and then restart sshd service to apply the changes made.

/var/cpanel/safe_sshd

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Comment