Error waiting for SSH: Packer经历了一个authentication Error: usin



使用vsphere-iso builder运行打包器时出现以下错误

Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain

json

"communicator": "ssh",
"ssh_username": "{{user `ssh_username`}}",
"ssh_password": "{{user `ssh_password`}}",
"ssh_timeout": "30m",

用户名和密码在运行时来自Jenkins。在autounattend.xml中进行了相同的更新,如果我在配置中硬编码凭证。Json文件,那么它工作良好。不知道出了什么问题

封包调试日志

2022/05/09 10:16:20 packer.exe plugin: [DEBUG] Detected authentication error. Increasing handshake attempts.
2022/05/09 10:16:27 packer.exe plugin: [INFO] Attempting SSH connection to 172.16.112.59:22...
2022/05/09 10:16:27 packer.exe plugin: [DEBUG] reconnecting to TCP connection for SSH
2022/05/09 10:16:27 packer.exe plugin: [DEBUG] handshaking with SSH
2022/05/09 10:16:28 packer.exe plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-

我得到了如下的解决方案

在<<p> strong> autounattend.xml 文件密码为纯文本true,需要更改为false。

相关内容

  • 没有找到相关文章

最新更新