Skip to content

Instantly share code, notes, and snippets.

@frankmanzhu
Last active March 13, 2019 04:38
Show Gist options
  • Save frankmanzhu/9fe6ac5b51916c1fd6410f70c1c61f21 to your computer and use it in GitHub Desktop.
Save frankmanzhu/9fe6ac5b51916c1fd6410f70c1c61f21 to your computer and use it in GitHub Desktop.
Install RancherOS on VirtualBox and configure it for ssh access
Run ssh-keygen
echo -e "#cloud-config\nssh_authorized_keys:\n - $(cat .ssh/id_rsa.pub)" > $HOME/cloud-config.yml
After boot rancherOS
sudo scp frank@xxx:/home/frank/cloud-config.yml .
sudo ros install -d /dev/sda -c cloud-config.yml
unmount the disk and reboot.
All done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment