用root用户或tidb用户执行都报一样的错,请问root用户安装集群也需要做互信吗?我使用的-p参数输入密码,但还是会报这个错, 如果使用tidb执行,将tidb设置sudo提权后,是不是必须先要在目标所有机器上创建tidb用户呢?
[tidb@monitor ~]# tiup cluster check /home/tidb/tidb.yaml --user root -p
[root@monitor ~]# tiup cluster check /home/tidb/tidb.yaml --user root -p
Input SSH password:
- Detect CPU Arch Name
- Detecting node 192.168.1.183 Arch info … Error
- Detecting node 192.168.1.184 Arch info … Error
- Detecting node 192.168.1.185 Arch info … Error
- Detecting node 192.168.1.188 Arch info … Error
- Detecting node 192.168.1.189 Arch info … Error
- Detecting node 192.168.1.190 Arch info … Error
- Detecting node 192.168.1.181 Arch info … Error
- Detecting node 192.168.1.182 Arch info … Error
- Detecting node 192.168.1.186 Arch info … Error
- Detecting node 192.168.1.187 Arch info … Error
- Detecting node 192.168.1.180 Arch info … Error
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for ‘root@192.168.1.189:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; uname -m}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2024-11-04-16-39-42.log.