mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[GH-ISSUE #747] 无法使用ChallengeResponseAuthentication登录ssh #506
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#506
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HyWell on GitHub (May 31, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/747
软件版本 / Release Version
0.3.14
缺陷描述 / Description
部署证书的时候提示
可以明确密码是正确的(使用复制粘贴 可以使用ssh正常登录esxi)
复现步骤 / Steps to reproduce
日志 / Logs
其他 / Miscellaneous
查看现在已经支持pve,后续能否支持esxi。
贡献 / Contribution
@HyWell commented on GitHub (Jun 1, 2025):
根据测试情况来看是esxi不支持密码(PasswordAuthentication)登陆,支持键盘交互(ChallengeResponseAuthentication)登陆导致的问题。通过修改esxi的/etc/ssh/sshd_config文件
修改为
之后 重启esxi的ssh服务,可正常使用。
由于修改esxi配置并非一种好方式,后续certimate是否可解决该问题?
@HyWell commented on GitHub (Sep 9, 2025):
最新测试现在会报错:
[2025-08-30 09:28:04]
failed to deploy certificate
[2025-08-30 09:28:04]
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,否则就报错,由于现在不知道如何测试,暂时只能提供这些信息
@fudiwei