Skip to content
Snippets Groups Projects
Commit 80c1726b authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Add pub key to the VM booted by vagrant"

parents d66eaf65 c51ee7a1
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,8 @@ Vagrant.configure(2) do |config| ...@@ -45,6 +45,8 @@ Vagrant.configure(2) do |config|
chmod 600 /root/.ssh/id_rsa chmod 600 /root/.ssh/id_rsa
echo '#{my_publickey}' > /root/.ssh/authorized_keys echo '#{my_publickey}' > /root/.ssh/authorized_keys
chmod 600 /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 mkdir -p /home/vagrant/.ssh
echo '#{my_privatekey}' >> /home/vagrant/.ssh/id_rsa echo '#{my_privatekey}' >> /home/vagrant/.ssh/id_rsa
chmod 600 /home/vagrant/.ssh/* 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