How to reset ssh port through WHM - Linux, Unix, FreeBSD專區 - 頂客論壇 ,免費遊戲,免費交友,免費空間,免費部落格,免費相簿,免費開店 - 頂客社區 dk101.com 最用心的華人社群網站
發新話題

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

發新話題

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