setup vagrant low security ssh public key to be able to connect as root
authorMicah Anderson <micah@riseup.net>
Tue, 20 Nov 2012 18:49:20 +0000 (13:49 -0500)
committerMicah Anderson <micah@riseup.net>
Tue, 20 Nov 2012 18:49:20 +0000 (13:49 -0500)
wheezy/vagrant.sh

index b503ad5..05605d3 100644 (file)
@@ -12,6 +12,14 @@ curl -Lo /home/vagrant/.ssh/authorized_keys \
 chmod 0600 /home/vagrant/.ssh/authorized_keys
 chown -R vagrant:vagrant /home/vagrant/.ssh
 
+# setup vagrant low security ssh public key to be able to connect as root
+mkdir /root/.ssh
+cp /home/vagrant/.ssh/authorized_keys /root/.ssh
+chown -R root:root /root/.ssh
+chmod 0700 /root/.ssh
+chmod 0600 /root/.ssh/authorized_keys
+
+
 # Customize the message of the day
 echo 'Welcome to your Vagrant-built virtual machine.' > /var/run/motd