使用KubeKey尝试进行AllinOne安装提示SSH错误
What is version of KubeKey has the issue?
kk version: &version.Info{Major:"3", Minor:"1", GitVersion:"v3.1.1", GitCommit:"7a184f786b02bec20d5534af137896f50e510396", GitTreeState:"clean", BuildDate:"2024-04-16T04:28:43Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
What is your os environment?
OpenEuler 24.03 - Linux 6.6.0-28.0.0.34.oe2403.x86_64 x86_64
KubeKey config file
No response
A clear and concise description of what happend.
按照提示运行:
./kk create cluster
时总是提示如下错误:
_ __ _ _ __
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ |_| | |_) | __/ |\ \ __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
__/ |
|___/
10:48:53 CST [GreetingsModule] Greetings
10:48:53 CST failed: [node1]
error: Pipeline[CreateClusterPipeline] execute failed: Module[GreetingsModule] exec failed:
failed: [node1] failed to connect to 192.168.5.10: could not establish connection to 192.168.5.10:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
已经尝试更换操作系统为Debian 12.0.6,以及更换不同的kk版本。均不成功。 提示的192.168.5.10地址就是本机的地址,并且试过在本机 ssh 192.168.5.10也能正常连接
Relevant log output
10:48:53 CST [GreetingsModule] Greetings
10:48:53 CST failed: [node1]
error: Pipeline[CreateClusterPipeline] execute failed: Module[GreetingsModule] exec failed:
failed: [node1] failed to connect to 192.168.5.10: could not establish connection to 192.168.5.10:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Additional information
No response
+1
检查下 有没有生成公钥
+1
+1
在4.x版本,如果是本机的话,将会使用local连接来执行命令(/bin/bash)。可以规避这个问题。
+1