Getting public keys from keypairs with cloudinit 0.7.0

Vitaly Kuznetsov vkuznets at redhat.com
Mon Nov 12 11:31:30 UTC 2012


On 11/12/2012 12:15 PM, Tomas Karasek wrote:
> Hi,
> to people who were testing cloudinit 0.7.0 in an environment using the
> DataSourceEc2 (OpenStack, Amazon, probably other environments too):
>
> In Openstack and amazon, you can upload public keys to the web interface
> of the cloud, and the public keys are then downloaded to each instance
> you launch. Cloudinit then takes care of downloading the public keys and
> placing them to .ssh/authorized_keys. It reaches the keys via the EC2
> api (i.e. http://169.254.169.254).
>
> Did you manage to get a user's public key to authorized_keys with
> cloudinit 0.7.0?
>

I've managed to get this working with EC2. But there is an issue with 
0.7.0 - the authorized_keys file is filled in only for 'default' user 
(so if you change this setting in cloud.cfg you'll end up with no 
authorized_keys file). It looks like a bug (or a weird feature :), 
gholms wanted to discuss this issue with upstream.

http://lists.fedoraproject.org/pipermail/cloud/2012-October/001826.html

-- 
Vitaly Kuznetsov, Cloud QE


More information about the cloud mailing list