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
sshd has failed, please contact the sysadmin
Posted by Mayur's BLOG
Subscribe to:
Post Comments (Atom)
1 comments:
shahid said... January 2, 2010 at 11:25 PM
Hello,
If you have changed default Port 22, you can fix that problem by modified /scripts/restartsrv
$chkp = '22,SSH';
$st = '/scripts/restartsrv_sshd --status';
$command = '/scripts/restartsrv_sshd --restart';
change to
$chkp = 'enteryourserversshport,SSH';
$st = '/scripts/restartsrv_sshd --status';
$command = '/scripts/restartsrv_sshd --restart';
=======================================
Regards,
Shahid
Post a Comment