diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index b9a5e7cda3820826779bb24677d1fd3f57c8dc09..720a4d20d4510702d08d9d39213f1393dc7d089c 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/*