Skip to content

Instantly share code, notes, and snippets.

@RupGautam
Created November 24, 2017 06:04
Show Gist options
  • Select an option

  • Save RupGautam/12bb39cd36010018339de95d50c2935c to your computer and use it in GitHub Desktop.

Select an option

Save RupGautam/12bb39cd36010018339de95d50c2935c to your computer and use it in GitHub Desktop.
#!/bin/bash
cat > "cloud-config.yaml" <<EOF
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZ/9+wL7ujxVFK4zCx/+MyoiLRqHEdw4UG6i5ge1DQggcS0Lk/ak1+RxsLtuAwZiPzwi7oda95yf6q72eswznuzQ1pQuz5ES4ByiFosgjWbIlaa9WfvHlae5sHh2BFyZbN3r91BsDtT3EJENEgq57uVLGvXnaBwnDlXLciIyiOD2fLy/iUH5uDGwohQfGuX8nRdYBxMXiA52gBSR75CZt1N1bCaieFswiJ1rcEk8WckYbBPmChbriKVNqKz53hpIVJxNzKr0B8KFRTJrYYFkwYOmviZiesKfHjh5BNponzmtMI0lhdyR5toaB6wGbpAglp0voJ2V2T2zumfujNUIpRypQwiMNqS0ieiDJ51+qOepm+MN1oyAm7TjsiiXIh3amCbSmMT7ISffmCodtLBmkURdzKZAo1FstDqP/Hv2v6aij+cYOyVa5mQzzYfx9Ot5CcmBTgEyuojxV9B+gJJJztRT3Ori7rh8Yo6QNlBlLwVCcjhz0BVVI67vp5liF8IOB7ofHdBHxuAoeiwgbKHrcvFpJm60cwzaq0lx9oYFHY2r0Eq//ewD15VhtyKjGb0dP8Q1MFaAOYXkXKJllwPKjvqZAZZEU64pzsKQc1hOVWgLFWaQXbOh0Whk/8EfPqy7rnW1W4rtieCz+kZvMBzxhEWKGCJpcikFq/0HB3l6009Q==
EOF
sudo coreos-install -d /dev/vda -c cloud-config.yaml
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment