Last active
December 1, 2015 00:43
-
-
Save Sydney-o9/96be1c0eab80c1cd4249 to your computer and use it in GitHub Desktop.
Fix SSH Error in Vagrant Box
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 | |
echo "1. Download public SSH Key vagrant.pub and replace it to .ssh/authorized_keys" | |
wget https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys | |
echo "2. Change Permissions .ssh/ (chmod 700)" | |
chmod 700 .ssh | |
echo "3. Change Permissions .ssh/ (vagrant:vagrant)" | |
chown -R vagrant:vagrant .ssh | |
echo "4. Change Permissions .ssh/authorized_keys (chmod 600)" | |
chmod 600 .ssh/authorized_keys | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment