学习安装8.5 报错

安装8.5 报错
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for ‘ser@192.168.149.205:22’ {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; /usr/bin/sudo -H bash -c “uname -m”}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

topology.yaml
global:
user: “tidb”
ssh_port: 22
deploy_dir: “/tidb-deploy”
data_dir: “/tidb-data”
listen_host: 0.0.0.0
arch: “amd64”
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
pd_servers:

  • host: 192.168.149.202
  • host: 192.168.149.203
  • host: 192.168.149.204
    tidb_servers:
  • host: 192.168.149.201
    tikv_servers:
  • host: 192.168.149.205
  • host: 192.168.149.206
  • host: 192.168.149.207
    tiflash_servers:
  • host: 192.168.149.208
    monitoring_servers:
  • host: 192.168.149.202
    grafana_servers:
  • host: 192.168.149.202
    alertmanager_servers:
  • host: 192.168.149.202

TiUP与其他节点没有互信吧。提示就是ssh的问题。

你部署集群初始化用户是ser,配置指定密码或者没有配置ssh互信免密登录

做互信免密了嘛?单节点也得做互信免密

需要配置互信的

另外部署用户也需要sudo权限

错误 = SSH 登录失败 → 没有配置免密 → 配置免密即可解决

是的,就是免密登录的问题

/etc/ssh/sshd_config 看下

没配置互信,看着贴的配置文件格式也不太对

看提示是获取不到cpu架构,权限方面的问题?

配置互信之后解决了吗

ser@192.168.149.205:22显示的这个账户为啥是ser

这个报错是免密的:
Error: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@192.168.149.206:22’ {ssh_stderr: We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
, 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: Process exited with status 1

节点互信没有配置好
这说明 TiUP 无法通过 SSH 免密登录到目标节点 192.168.149.205,导致执行 uname -m 命令失败,无法获取 CPU 架构信息。

中控机现在用的用户是哪个呢

那可以配置免密登录重试一下呢

ssh的问题把

免密重新做下

还是得多遇到些问题才好啊