Hi everyone, I'm trying to a QEMU image with Flatcar and having this issue during build when packer tries to connect via ssh (using public key)
==> qemu: Using ssh communicator to connect: localhost
2020/11/13 12:33:17 packer-builder-qemu plugin: Using host value: localhost
2020/11/13 12:33:17 packer-builder-qemu plugin: [INFO] Waiting for SSH, up to timeout: 5m0s
==> qemu: Waiting for SSH to become available...
2020/11/13 12:33:17 packer-builder-qemu plugin: Using host value: localhost
2020/11/13 12:33:17 packer-builder-qemu plugin: [INFO] Attempting SSH connection to localhost:4194...
2020/11/13 12:33:17 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/11/13 12:33:17 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/11/13 12:33:17 packer-builder-qemu plugin: [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
My ClC
- name: core
ssh_authorized_keys:
- ssh-rsa SSH_KEY_CONTENTS
home_dir: /home/core
shell: /bin/bash
Checked the user's authorized_keys, but it does not exists
As I am starting to use Flatcar now, not sure what's the issue here
Thanks for the help