LXD & cloud-init: automatically provision SSH keys on launch
Provision from Github
-
Create a new profile
-
Add the below instructions to the profile
config:
cloud-init.user-data: |
#cloud-config
users:
- name: ubuntu
ssh_import_id:
- gh:guiand888
description: ""
devices: {}
name: cloud_init-ssh_keys
used_by:
- /1.0/instances/docker-staging-ubt
- Add the profile to your LXD container or VM