發新話題

How to reset ssh port through WHM

How to reset ssh port through WHM

If you mess up with the SSH setting’s on your server and lock yourself out of ssh then you can reset the SSH configuration settings from WHM by following the below steps :

Login to your WHM on a non secure port that is : 2086
for example : http://serverip:2086

And then browse the URL to reset the SSH configuration settings :
http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart

for ex :
http://10.10.10.01:2086/scripts2/doautofixer?autofix=safesshrestart


That’s all you are done.

TOP

sshd has failed, please contact the sysadmin

If you have changed the shell default Port 22 on a cPanel powered server , restarting sshd from the WHM will fail. You have to ssh to the server and issue the following command to restart sshd…

    * /sbin/service sshd restart

To, temporarily, reset your shell port back to 22, run the following command from the Address field in browser:

      SERVER_MAIN_IP:2087/scripts2/doautofixer?autofix=safesshrestart

Now, you should be able to access shell, and you need to restart sshd at the prompt using the command mentioned above

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。