From 95f1962264387e32a31c57b578d4bfd70ebc22cc Mon Sep 17 00:00:00 2001 From: Roger Luethi <rl@patchworkscience.org> Date: Fri, 3 Oct 2014 10:18:04 +0200 Subject: [PATCH] labs: install private ssh key, too In addition to the public Vagrant insecure ssh key, install the private one, too. Once in the VM, the private key can be used for connections to other VMs. Change-Id: If99fd29099749bf8224f449f5884399eebdef6ce --- labs/scripts/osbash/enable_vagrant_ssh_keys.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/labs/scripts/osbash/enable_vagrant_ssh_keys.sh b/labs/scripts/osbash/enable_vagrant_ssh_keys.sh index ec2b9d8f..947afaf0 100755 --- a/labs/scripts/osbash/enable_vagrant_ssh_keys.sh +++ b/labs/scripts/osbash/enable_vagrant_ssh_keys.sh @@ -49,6 +49,10 @@ function authorize_vagrant_key { fi } +echo "Installing Vagrant insecure private key (connections to other VMs)." +get_vagrant_key "vagrant" +chmod 400 "$HOME/.ssh/vagrant" + get_vagrant_key "vagrant.pub" chmod 444 "$HOME/.ssh/vagrant.pub"