Skip to content
Snippets Groups Projects
Commit c51ee7a1 authored by Hui Kang's avatar Hui Kang
Browse files

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
parent 9c54b0af
No related branches found
No related tags found
No related merge requests found
......@@ -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/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment