Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

cloud-config adding ssh authorized_keys - documentation? #1156

Open
naisanza opened this issue Oct 2, 2017 · 3 comments
Open

cloud-config adding ssh authorized_keys - documentation? #1156

naisanza opened this issue Oct 2, 2017 · 3 comments

Comments

@naisanza
Copy link

naisanza commented Oct 2, 2017

From the documentation on installing to disk: https://coreos.com/os/docs/latest/installing-to-disk.html

This doesn't work:

#cloud-config
passwd:
  users:
    - name: core
      ssh_authorized_keys:
        - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGdByTgSVHq...

After digging around and finding this: https://coreos.com/os/docs/latest/cloud-config.html

This works:

#cloud-config
ssh_authorized_keys:
  - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGdByTgSVHq...
@bgilbert
Copy link
Contributor

bgilbert commented Oct 2, 2017

The config on that page is a Container Linux Config, not a cloud-config. To use it, run it through the Container Linux Config Transpiler to get an Ignition config, then pass the Ignition config to coreos-install -i.

For more information on migrating from cloud-configs to Container Linux Configs, see here.

@naisanza
Copy link
Author

naisanza commented Oct 2, 2017

@bgilbert ah I see. I just have to get a copy of https://github.com/coreos/container-linux-config-transpiler/releases. Is the Container Linux Config Transpiler available on the coreos ISO?

@bgilbert
Copy link
Contributor

bgilbert commented Oct 2, 2017

At present we don't include the Config Transpiler in the OS image, so you'll have to download it from the releases page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants