diff --git a/Vagrantfile b/Vagrantfile
index 38bd4e3960816a33c38847dbef7e303b9cd30514..03c66302fcd566754ced4eb9d066857dbc4fc6f5 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -22,12 +22,15 @@ Vagrant.configure("2") do |config|
auto_correct: true
end
-
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.memory = "2048"
end
+ config.ssh.insert_key = false
+ config.ssh.private_key_path = ["~/.ssh/id_rsa", "~/.vagrant.d/insecure_private_key"]
+ config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
+
config.vm.provision "shell", inline: <<-SHELL
if [ -f /vagrant/localenv.sh ]; then
. /vagrant/localenv.sh