1,221
edits
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 124: | Line 124: | ||
If you wish to preserve the default user created by the distribution (debian, centos, ubuntu, etc.), use the following form: | If you wish to preserve the default user created by the distribution (debian, centos, ubuntu, etc.), use the following form: | ||
#cloud-config | |||
users: | users: | ||
- default | - default | ||
- name: | - name: gretzky | ||
shell: /bin/bash | shell: /bin/bash | ||
sudo: ALL=(ALL) NOPASSWD:ALL | sudo: ALL=(ALL) NOPASSWD:ALL | ||
ssh_authorized_keys: | ssh_authorized_keys: | ||
- < | - <Gretzky's public key goes here> | ||
- name: | - name: lemieux | ||
shell: /bin/bash | shell: /bin/bash | ||
ssh_authorized_keys: | ssh_authorized_keys: | ||
- < | - <Lemieux's public key goes here> | ||
After the VM has finished spawning, look at the log to ensure that the public keys have been added correctly for those users. The log can be found by clicking on the name of the instance on the "Compute->Instances" panel and then selecting the "log" tab. The log should show something like this: | After the VM has finished spawning, look at the log to ensure that the public keys have been added correctly for those users. The log can be found by clicking on the name of the instance on the "Compute->Instances" panel and then selecting the "log" tab. The log should show something like this: |
edits