Skip to content

Instantly share code, notes, and snippets.

@mrmichalis
Created September 17, 2014 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmichalis/970ad2ac74b13bda0380 to your computer and use it in GitHub Desktop.
Save mrmichalis/970ad2ac74b13bda0380 to your computer and use it in GitHub Desktop.
Set SSH
#!/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