Comment 2 for bug 524101

Revision history for this message
Scott Moser (smoser) wrote :

cloud-config does support passing in ssh keys. Look at http://bazaar.launchpad.net/%7Ecloud-init-dev/cloud-init/trunk/annotate/head%3A/doc/examples/cloud-config.txt for 'ssh_authorized_keys'.

I think what you're suggesting is what Dustin realized can be done. He opened bug 524226 ., with 'ssh-import-id' on it. That script would live inside the image, and then could easily be told to add authorized_keys on boot via cloud-config. The 'runcmd' format of cloud-config would make this trivial:

#cloud-config
runcmd:
 - [ su , -c, "ssh-import-id smoser kirkland", ubuntu ]