Sarah
(Sarah)
1
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
Error: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.248.231.196:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin sudo -H bash -c “test -d /data || (mkdir -p /data && chown tidb:$(id -g -n tidb) /data)”}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。
1 个赞
来了老弟
4
asktug 有很多类似的问题,也请仔细阅读下官方对于 deploy user 的描述
2 个赞
Sarah
(Sarah)
6
2. TiUP Cluster 组件故障排查
2.1 部署过程中提示 unable to authenticate, attempted methods [none publickey]
由于部署时会向远程主机上传组件包,以及进行初始化,这个过程需要连接到远程主机,该错误是由于找不到连接到远程主机的 SSH 私钥导致的。请确认你是否通过 tiup cluster deploy -i identity_file
指定该私钥。
- 如果没有指定
-i
参数,可能是由于 TiUP 没有自动找到私钥路径,建议通过 -i
显式指定私钥路径。
- 如果指定了
-i
参数,可能是由于指定的私钥不能登录,可以通过手动执行 ssh -i identity_file user@remote
命令来验证。
- 如果是通过密码登录远程主机,请确保指定了
-p
参数,同时输入了正确的登录密码。
我现在是用的密码方式登录-p 已经正确密码了
1 个赞
因为这个问题一直无法部署
这个问题没有看到解决方案,是不是每人维护这个社区了
caiyfc
20
ubuntu可以呀,就是我是手动安装的ssh,要注意/etc/ssh/sshd_config
中的 PermitRootLogin 后面改成 yes
#PermitRootLogin prohibit-password 是把这个注释打开嘛?》我卡在这里很久了,一直部署不上,请教下