Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]使用密钥方式无法连接到主机 #563

Open
dakangsiji opened this issue May 17, 2023 · 1 comment
Open

[Question]使用密钥方式无法连接到主机 #563

dakangsiji opened this issue May 17, 2023 · 1 comment
Assignees

Comments

@dakangsiji
Copy link

dakangsiji commented May 17, 2023

1
请描述您的问题.
ko凭据为私钥,节点authorized_keys 已写入公钥信息,但是ko上始终无法连接:

{"bj-at1":"{"action":"setup","changed":false,"msg":"Failed to connect to the host via ssh: Warning: Permanently added '172.16.1.196' (ECDSA) to the list of known hosts.r Authorized users only. All activities may be monitored and reported. Load key "/var/kobe/data/key/bj-at1-9d76ce2b-ee41-40e9-a335-b76737657570.pem": invalid formatr root@172.16.1.196: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).","unreachable":true}"}

其他节点上用此公私钥完全没有问题,抓包也未看见出异常;
@mlinge
Copy link

mlinge commented Jul 26, 2023

本人添加主机时也遇到初始化失败问题,部署机和要添加的主机之间本身是互通的,各自的ssh连接也都正常,ssh端口为默认22端口,IP地址也填写的同一局域网内的IP,所有防火墙均已关闭,不管是采用密码模式还是密钥均连接失败,这种情况需要如何解决,谢谢!

部署版本kubeoperator-release-v3.16.4-amd64.tar.gz,失败的提示信息如下:
{"dev01":"{"action":"setup","changed":false,"msg":"Failed to connect to the host via ssh: ssh: connect to host xxx.xxx.xxx.xxx port 22: Operation timed out","unreachable":true}"}

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants