{"code": 1, "error": "failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for 'alan@192.168.122.23: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 publickey], no supported methods remain", "errorVerbose": "executor.ssh.execute_failed: Failed to execute command over SSH for 'alan@192.168.122.23: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 publickey], no supported methods remain\
at github.com/pingcap/tiup/pkg/cluster/executor.(*EasySSHExecutor).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/executor/ssh.go:174\
at github.com/pingcap/tiup/pkg/cluster/executor.(*CheckPointExecutor).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/executor/checkpoint.go:85\
at github.com/pingcap/tiup/pkg/cluster/task.(*Shell).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/shell.go:43\
at github.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\
at github.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\
at github.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1()\
\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\
at runtime.goexit()\
\truntime/asm_arm64.s:1263\
github.com/pingcap/errors.AddStack\
\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\
github.com/pingcap/errors.Trace\
\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\
github.com/pingcap/tiup/pkg/cluster/task.(*Shell).Execute\
\tgithub.com/pingcap/tiup/pkg/cluster/task/shell.go:50\
github.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\
\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:86\
github.com/pingcap/tiup/pkg/cluster/task.(*StepDisplay).Execute\
\tgithub.com/pingcap/tiup/pkg/cluster/task/step.go:111\
github.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\
\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:144\
runtime.goexit\
\truntime/asm_arm64.s:1263\
failed to fetch cpu-arch or kernel-name"}
建议还是用 TiUP 来部署吧
是用的tiup启动
tiup cluster deploy tidb-test 6.1.0 /Users/alan/.tiup/topology.yaml --user alan
他默认ssh给我加上了:22 但是mac的ssh连接又不需要加上端口,不知道怎么办
ssh 连接默认端口就是22 后面加端口应该解析成主机名, 不加端口呢
检查一下权限
.ssh 目录必须是 744,authorized_keys 文件必须是 600
建议用脚本互信
./sshUserSetup.sh -user tidb
-hosts “192.168.80.111 192.168.0.114 192.168.80.117 192.168.80.118 192.168.80.119” -advanced \ exverify -confirm
脚本如下
sshUserSetup.sh (32.6 KB)
一路提示yes,yes
什么都不提示就回车
1 个赞
thanks
此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。