From c51ee7a1df3b10c1792cd9225b1b2aa6fb57fc51 Mon Sep 17 00:00:00 2001 From: Hui Kang <hkang.sunysb@gmail.com> Date: Tue, 22 Sep 2015 01:01:38 +0000 Subject: [PATCH] Add pub key to the VM booted by vagrant so that the ./tool/init-runonce can use the key Change-Id: I50e5540a24ddda9d8266585e7cb13fb8e3ad4473 Closes-Bug: #1498240 --- vagrant/Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index b9a5e7cda3..720a4d20d4 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -62,6 +62,8 @@ Vagrant.configure(2) do |config| chmod 600 /root/.ssh/id_rsa echo '#{my_publickey}' > /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys + echo '#{my_publickey}' > /root/.ssh/id_rsa.pub + chmod 644 /root/.ssh/id_rsa.pub mkdir -p /home/vagrant/.ssh echo '#{my_privatekey}' >> /home/vagrant/.ssh/id_rsa chmod 600 /home/vagrant/.ssh/* -- GitLab