[GH-ISSUE #1011] [Bug] failed to create ssh client: ssh: handshake failed: unexpected keyboard interactive question [] #695

Closed
opened 2026-03-03 01:05:17 +03:00 by kerem · 2 comments
Owner

Originally created by @HyWell on GitHub (Oct 28, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1011

软件版本 / Release Version

v0.4.1

缺陷描述 / Description

#747 是这个问题的衍生,现在esxi的passwordauthentication为no的情况下,执行,会提示failed to create ssh client: ssh: handshake failed: unexpected keyboard interactive question []。
根据ai及材料搜索提示 internal/pkg/core/deployer/providers/ssh/ssh.go:
if len(questions) == 1 {
return []string{password}, nil
}
处理太严格了,只允许 问题长度为 1,否则就报错,由于现在不知道如何测试,暂时只能提供这些信息

复现步骤 / Steps to reproduce

  1. 新建ssh连接并连接esxi主机
  2. 执行任务

日志 / Logs

# 请在此粘贴日志 / Paste logs here

其他 / Miscellaneous

No response

贡献 / Contribution

  • 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
Originally created by @HyWell on GitHub (Oct 28, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1011 ### 软件版本 / Release Version v0.4.1 ### 缺陷描述 / Description #747 是这个问题的衍生,现在esxi的passwordauthentication为no的情况下,执行,会提示failed to create ssh client: ssh: handshake failed: unexpected keyboard interactive question []。 根据ai及材料搜索提示 internal/pkg/core/deployer/providers/ssh/ssh.go: if len(questions) == 1 { return []string{password}, nil } 处理太严格了,只允许 问题长度为 1,否则就报错,由于现在不知道如何测试,暂时只能提供这些信息 ### 复现步骤 / Steps to reproduce 1. 新建ssh连接并连接esxi主机 2. 执行任务 ### 日志 / Logs <details> ```console # 请在此粘贴日志 / Paste logs here ``` </details> ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
kerem 2026-03-03 01:05:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fudiwei commented on GitHub (Oct 30, 2025):

贴一下 sshd 完整配置以及版本。

<!-- gh-comment-id:3467932544 --> @fudiwei commented on GitHub (Oct 30, 2025): 贴一下 sshd 完整配置以及版本。
Author
Owner

@HyWell commented on GitHub (Oct 31, 2025):

Image 其中 passwordauthentication本身是no被我修改为yes esxi对应版本 Image
<!-- gh-comment-id:3471390945 --> @HyWell commented on GitHub (Oct 31, 2025): <img width="1495" height="803" alt="Image" src="https://github.com/user-attachments/assets/41b5a16d-279e-4338-a44f-a9b4972e0fec" /> 其中 passwordauthentication本身是no被我修改为yes esxi对应版本 <img width="766" height="325" alt="Image" src="https://github.com/user-attachments/assets/81160a2e-159d-4d0c-9570-f5ff3ea9200b" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#695
No description provided.