Unable to import SSH key
Bug #1805548 reported by
Jonathan Tran
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical SSO provider |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm trying to import an SSH key to use with Ubuntu Core but when I paste my public key, I get the following message
Invalid SSH key data: '<contents of id_rsa.pub>'
description: | updated |
To post a comment you must log in.
I see you have elided the contents of your id_rsa.pub, but on the original report you had shown something similar to this:
Invalid SSH key data: 'ssh-rsa SOME_BASE_ 64_PAYLOAD'
The problem I think I see is that this is missing one component/comment at the end. Something like this works:
ssh-rsa SOME_BASE_ 64_PAYLOAD some-identifier
now - a key with no comment is valid generally, but Launchpad/SSO does require it. Note that a comment-less key has to be generated with ssh-keygen -C '' (explicit empty comment), so it's not very common.
You can just append an arbitrary identifier to the end to conform to the expected format.