Please consider the use of the ssh-import-id utility, which is part of every Ubuntu cloud image, and is tightly integrated into cloud-init. By default, it securely retrieves public SSH keys from Launchpad.net, but that's configurable and it can retrieve those from anywhere.
Please consider the use of the ssh-import-id utility, which is part of every Ubuntu cloud image, and is tightly integrated into cloud-init. By default, it securely retrieves public SSH keys from Launchpad.net, but that's configurable and it can retrieve those from anywhere.