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)

Error log
==> 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





-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/1a5f519e-33ec-4a02-b95f-a2d2d15f3d66n%40googlegroups.com.

Reply via email to