summaryrefslogtreecommitdiff
path: root/wheezy
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-11-20 13:49:20 -0500
committerMicah Anderson <micah@riseup.net>2012-11-20 13:49:20 -0500
commitf18fd4ec9d19e33a5943c3424f32315690835062 (patch)
tree98198a4b00583989066c9d06549ca29133ea46eb /wheezy
parenta859b1c30af77da2c4f689b16954ef20224995f5 (diff)
setup vagrant low security ssh public key to be able to connect as root
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