cPanel服务器SSH访问提示Disconnected:No Supported authentication methods available:
解决方法:
登录WHM,然后执行:
http://server_ip:2086/scripts2/doautofixer?autofix=safesshrestart
或者:
https://server_ip:2087/scripts2/doautofixer?autofix=safesshrestart
修复之后会设置SSH的端口为默认的22,如果是22端口被占用了,可能会设置为23等。修复完成一般会看到:
AutoFixer Execution
Requesting script ...
Done.
Executing script ...
Attempting to locate sshd binaries installed on the system ...
Located /usr/sbin/sshd
Done.
Killing exisiting sshd processes...
停止 sshd:[确定]
Done.
configuring sshd to run on port 22
/usr/sbin/sshd successfully started!
root 8401 1.0 0.0 66252 1272 ? Rs 13:38 0:00 /usr/sbin/sshd -f /var/cpanel/safe_sshd
Done.
接下来即可顺利SSH登陆服务器。