Error: executor.ssh.execute_failed: Failed to execute command over SSH for 'tidb@node2:22'

  • Copy tidb → node4 … Error
  • Copy tidb → node5 … Error
  • Copy tiflash → node3 … Error
  • Copy tiflash → node4 … Error
  • Copy tiflash → node5 … Error
  • Copy prometheus → node1 … Error
  • Copy prometheus → node2 … Error
  • Copy prometheus → node3 … Error
  • Copy prometheus → node4 … Error
  • Copy prometheus → node5 … Error
  • Copy grafana → node1 … Error
  • Copy grafana → node2 … Error
  • Copy grafana → node3 … Error
  • Copy grafana → node4 … Error
  • Copy grafana → node5 … Error
  • Copy alertmanager → node1 … Error
  • Copy alertmanager → node4 … Error
  • Copy alertmanager → node5 … Error
  • Deploy node_exporter → node1 … Error
  • Deploy node_exporter → node2 … Error
  • Deploy node_exporter → node3 … Error
  • Deploy node_exporter → node4 … Error
  • Deploy node_exporter → node5 … Error
  • Deploy blackbox_exporter → node5 … Error
  • Deploy blackbox_exporter → node1 … Error
  • Deploy blackbox_exporter → node2 … Error
  • Deploy blackbox_exporter → node3 … Error
  • Deploy blackbox_exporter → node4 … Error

Error: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@node2:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /usr/bin/sudo -H bash -c “test -d /tidb-deploy || (mkdir -p /tidb-deploy && chown tidb:$(id -g -n tidb) /tidb-deploy)”}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

tiup-cluster-debug-2022-05-17-14-17-00.log

备注:手动 ssh 没有问题
Ubuntu 22.04 LTS
OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022

另外测试Ubuntu 20.04 LTS版本没有问题 (478.0 KB)
Ubuntu 20.04 LTS
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f 31 Mar 2020

3 Likes

这一看就是互信没搞好…
友情提示,尽量使用tiup 帮你建立账号,手动配置互信的话,要测试好… (对 user id 和 group id 都会有要求)

来参考下:


https://docs.pingcap.com/zh/tidb/stable/check-before-deployment#手动配置-ssh-互信及-sudo-免密码

2 Likes

您好.互信是通过下面操作的.
当前我这边验证是 高版本sshd 出现的问题.
Ubuntu 20.04 LTS
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f 31 Mar 2020 这个版本没有问题
https://docs.pingcap.com/zh/tidb/stable/check-before-deployment#手动配置-ssh-互信及-sudo-免密码

3 Likes

更换成Ubuntu 20.04.4 LTS 系统是可以正常安装的

2 Likes

要么互相,要么可能防火墙的问题

检查一下防火墙是否设置白名单,以及互信设置。