Last active
March 13, 2019 04:38
-
-
Save frankmanzhu/9fe6ac5b51916c1fd6410f70c1c61f21 to your computer and use it in GitHub Desktop.
Install RancherOS on VirtualBox and configure it for ssh access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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