Add an ssh key should allow adding a key without comments

Bug #60601 reported by Maftoul Samuel
52
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

In id_[r,d]dsa.pub the last part of the key line is a comment.
Launchpad should allow adding a key without a comment.
The comment is generally the username@hostname used when the key was created, this doesn't add any usefull information to launchpad

Changed in launchpad:
importance: Untriaged → Low
status: Unconfirmed → Confirmed
Revision history for this message
Andrew Bennetts (spiv) wrote :

Just had another user on #launchpad affected by this.

Revision history for this message
Magnus Hedemark (viridari) wrote :

I was banging my head against the wall with the same problem. Was trying to add a known good public key, one which does not include a comment field (valid per OpenSSH specifications and common in the real world) and Launchpad refused to accept it as a valid key. I added a bogus comment to the end of it per the suggestion of "spiv" (Andrew Bennetts) in #launchpad and it worked.

This bug is getting pretty long in tooth. Could someone please have a look at it?

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Agreed. This is still a bug and if it cannot be fixed, it could be fairly easy to add some comments/info to help the user add the key with a comment.

Revision history for this message
Vagrant Cascadian (vagrantc) wrote :

this was a bit frustrating for me too... if it is for some reason unfixable, at least improve the error message and/or documentation on adding keys to mention this bug.

Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-registry
Curtis Hovey (sinzui)
tags: added: ssh
Revision history for this message
Renne (renne) wrote :

It was quite frustrating for me, too. I had to find the reason by googling after a successless series of try-and-errors.

It's quite embarrasing for Canoncial to habe this BUG still open after SEVEN years.

At least, add a hint in the error message!

Revision history for this message
Bernhard (rep-dot-nop) wrote :

Note that i even wrote a verification routine in the trail of https://bugs.launchpad.net/launchpad/+bug/540195 that would handle this fine: https://bugs.launchpad.net/launchpad/+bug/540195/comments/6

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.