I'm trying to use cloud init to add my ssh key, I have generated one on my desktop PC using id_ed25519 after that I added the following to my cloud-init.yml users:
If I run /var/log/cloud-init-output.log it has a line with the text
When I try to connect using ssh I get the following
I attach the cloud init using
What am I missing?
YAML:
- name: peter
passwd: "..." # to enable auth using password until I get my key to work
ssh_authorized_keys:
- ssh-ed25519: ..... peter@....something
ci-info: no authorized SSH keys fingerprints found for user peter
also there is no ~/.ssh directory. When I try to connect using ssh I get the following
Code:
debug1: Offering public key: D:\\Users\\Peter/.ssh/id_ed25519 ED25519 SHA256:.....
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: D:\\Users\\Peter/.ssh/id_xmss
debug3: no such identity: D:\\Users\\Peter/.ssh/id_xmss: No such file or directory
I attach the cloud init using
qm set $VMID --cicustom "user=snippets:snippets/$SNIPPETNAME"
and it works as other settings take effect.What am I missing?