import 4096bit DSA SSH key: "Error: invalid public key"

Asked by Bernhard

When trying to import my ssh key (a 4096bit DSA key which works without problems since some time now everywhere else) the "import key" of +editssh fails with "Invalid public key".

Please let me know what i can do to help tracking down this problem.
TIA && cheers,

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Bernhard
Solved:
Last query:
Last reply:
Revision history for this message
Curtis Hovey (sinzui) said :
#1

Can you paste a copy of the public key at http://pastebin.ubuntu.com/ ? The common reasons for failure are paste errors like broken lines or the missing end comment.

Revision history for this message
Bernhard (rep-dot-nop) said :
#2

The end comment is indeed empty:
$ tail -c3 .ssh/id_dsa.pub
==

Could you please emit an appropriate error if you require a trailing comment?
TIA.

PS: I've added a " foo" now and the key was imported successfully.
The trailing token after the public-key is not required by ssh, i guess people often put something like their email-addr in there as comment.

Revision history for this message
Max Bowsher (maxb) said :
#3

It appears this question has been answered. Marking it as such.

Revision history for this message
Bernhard (rep-dot-nop) said :
#4

Patch to fix this was posted here, back then, fwiw:
https://bugs.launchpad.net/launchpad/+bug/540195/comments/2

I guess canonical applied something to that effect by now (but didn't check).
Problem solved.