cloud-config syntax should not require rsa_public given rsa_private

Bug #648905 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: cloud-init

Currently, the cloud-config syntax for inserting a private key for the ssh server requires that there be a public key also.

The example below is the example syntax, but the dsa_public and rsa_public should not be necessary. Given a rsa_private key, a rsa_public key can be generated, via:
  ssh-keygen -yf file
 or
  ssh-keygen -yf /dev/stdin < file

===== Example ====
ssh_keys:
  rsa_private: |
    -----BEGIN RSA PRIVATE KEY-----
    MIIBxwIBAAJhAKD0YSHy73nUgysO13XsJmd4fHiFyQ+00R7VVu2iV9Qcon2LZS/x
    ...
    REPPOyrAspdeOAV+6VKRavstea7+2DZmSUgE
    -----END RSA PRIVATE KEY-----

  rsa_public: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAGEAoPRhIfLvedSDKw7XdewmZ3h8eIXJD7TRHtVW7aJX1ByifYtlL/HVzJ09nilCl+MSFrpbFnqjxyL8Rr/DSf7QcY/BrGUQbZn2Kc22PemAWthxHO18QJvWPocKJtlsDNi3 smoser@localhost

  dsa_private: |
    -----BEGIN DSA PRIVATE KEY-----
    MIIBuwIBAAKBgQDP2HLu7pTExL89USyM0264RCyWX/CMLmukxX0Jdbm29ax8FBJT
    ...
    99iziAH0KBMVbxy03Trz
    -----END DSA PRIVATE KEY-----

  dsa_public: ssh-dss AAAAB3NzaC1kc3MAAAC....Q= smoser@localhost
===================

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: cloud-init 0.5.15-0ubuntu3
ProcVersionSignature: User Name 2.6.35-22.33-virtual 2.6.35.4
Uname: Linux 2.6.35-22-virtual x86_64
Architecture: amd64
Date: Mon Sep 27 13:32:52 2010
Ec2AMI: ami-7638cd1f
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1d
Ec2InstanceType: t1.micro
Ec2Kernel: aki-427d952b
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Changed in cloud-init (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.6.0-0ubuntu1

---------------
cloud-init (0.6.0-0ubuntu1) natty; urgency=low

  * New upstream release.
  * fix permissions on cloud-init.log so syslog can write to it (LP: ##704509)
  * rework of /var/lib/cloud layout
  * remove updates-check (LP: #653220)
  * support resizing root partition on first boot (enabled by default)
  * added cloud-config options for setting hostname, phone_home
  * indicate "all the way up" with message to console and file creation
    in /var/lib/cloud/instance/ (LP: #653271)
  * write ssh keys to console late in boot to ensure they're in console buffer
  * add support for redirecting output of cloud-init, cloud-config,
    cloud-final via the config file, or user data config file
  * add support for posting data about the instance to a url (phone_home)
  * add minimal OVF transport (iso) support
  * make DataSources that are attempted dynamic and configurable from
    config. config option 'cloud_type' replaced by 'datasource_list'
  * add 'timezone' option to cloud-config (LP: #645458)
  * Added an additional archive format, that can be used for multi-part
    input to cloud-init. This may be more user friendly then mime-multipart
    (LP: #641504)
  * add support for reading Rightscale style user data (LP: #668400)
  * make the message on 'disable_root' more clear (LP: #672417)
  * do not require public key if private is given in ssh cloud-config
    (LP: #648905)
 -- Scott Moser <email address hidden> Wed, 26 Jan 2011 17:28:36 -0500

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
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.