ssh-import-lp-id cannot handle multi-line ssh public keys

Bug #596938 reported by Dustin Kirkland 
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-utils (Ubuntu)
Fix Released
Medium
Dustin Kirkland 
Lucid
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: cloud-utils

SSH public keys should always be one single line.

Launchpad, however, seems to allow multi-line public keys. This is perhaps a bug in Launchpad (?).

However, ssh-import-lp-id is not able to handle this gracefully, but should.

It should automatically co-join subsequent lines, if part of a single key.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks to Jos Boumans for the elegant perl one liner.

Changed in cloud-utils (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-utils - 0.13ubuntu1

---------------
cloud-utils (0.13ubuntu1) maverick; urgency=low

  [ Dustin Kirkland ]
  * ssh-import-lp-id: handle multi-line ssh public keys in Launchpad,
    LP: #596938; thanks to Jos Boumans for the elegant snippet of perl that
    fixes this
  [ Clint Byrum ]
  * uec-run-instances: rewritten command with much larger scope
 -- Scott Moser <email address hidden> Thu, 24 Jun 2010 20:40:09 -0400

Changed in cloud-utils (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'd like to see this published to lucid-updates, eventually, once it's gotten a little bit of burn time in Maverick. This bug bites people pretty often, actually.

Changed in cloud-utils (Ubuntu Lucid):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 596938] Re: ssh-import-lp-id cannot handle multi-line ssh public keys

On Mon, 28 Jun 2010, Dustin Kirkland wrote:

> I'd like to see this published to lucid-updates, eventually, once it's
> gotten a little bit of burn time in Maverick. This bug bites people
> pretty often, actually.

Its not as if it is very difficult to fix the problem outside of code.

If you try 'ssh-import-lp-id <USER>' so that you can let USER into your
system, and it fails, you can tell them to fix their launchpad keys to not
have carriage returns in them and re-run the command.

If its something you do once, then its no big deal. If its something
you're wanting to automate, its still no big deal (the user has to make a
single change to fix this in the database).

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 596938] Re: ssh-import-lp-id cannot handle multi-line ssh public keys

Hmm, it would be nice if Launchpad would clean this up itself, actually....

Changed in cloud-utils (Ubuntu Lucid):
assignee: Dustin Kirkland (kirkland) → nobody
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in cloud-utils (Ubuntu Lucid):
status: Triaged → Won't Fix
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.