使用 packer vmware-vmx 并配置一台不支持带密码的 ssh 的机器

using packer vmware-vmx and provisioning a machine that does not support ssh with password

使用 vmware-vmx 构建器时,我看不到指定要使用的 SSH 私钥的方法。我看到的唯一选项是:

ssh_username
ssh_password

使用密码的 SSH 访问被禁用,我只允许 public 密钥 SSH。谢谢

你应该使用 ssh_private_key_file