summaryrefslogtreecommitdiff
path: root/wheezy
diff options
context:
space:
mode:
Diffstat (limited to 'wheezy')
-rw-r--r--wheezy/vagrant.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/wheezy/vagrant.sh b/wheezy/vagrant.sh
index b503ad5..05605d3 100644
--- a/wheezy/vagrant.sh
+++ b/wheezy/vagrant.sh
@@ -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