Created
September 17, 2014 02:24
-
-
Save mrmichalis/970ad2ac74b13bda0380 to your computer and use it in GitHub Desktop.
Set SSH
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
#!/usr/bin/env bash | |
mkdir -p /root/.ssh | |
chmod 700 /root/.ssh | |
wget --no-check-certificate -nv 'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O /root/.ssh/authorized_keys | |
wget --no-check-certificate -nv 'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant' -O /root/.ssh/id_rsa | |
wget --no-check-certificate -nv 'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O /root/.ssh/id_rsa.pub | |
chmod 600 /root/.ssh/authorized_keys /root/.ssh/id_rsa /root/.ssh/id_rsa.pub | |
chown -R root /root/.ssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment