Yubikey ssh public key not added to authorized_keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have an ssh key generated for Yubikey, with "ssh-keygen -t ecdsa-sk ..." which results in an ssh public key of "<email address hidden> ...."
When I add that key to "ssh_authorized
#cloud-config
ssh_authorized_
- "ssh-rsa AAAAB3NzaC1yc2E
- "<email address hidden> AAAAInNrLWVjZHN
results in only "ssh-rsa" key being added, (I've also tried specifying them in different order and the same outcome).
Tested on Ubuntu 20.04, on AWS.
tags: | added: bitesize |
Thanks Gergely for reporting this bug. It seems that the U2F key formats are not yet covered in ssh_util.py. The key formats are defined in [1] and we probably want to add all of:
<email address hidden>
<email address hidden>
<email address hidden>
<email address hidden>
[1] https:/ /github. com/openssh/ openssh- portable/ blob/master/ PROTOCOL. u2f