Vagrant hangs at "SSH auth method: Private key

Posted on Dec 11, 2022

Question

I am running VirtualBox 5.0.24 and Vagrant 1.8.5 on Digital Ocean VPS running on Ubuntu 14.04 LTS Precise I am using the box ubuntu/precise64 Everything works fine but when i do vagrant up it hangs at the

SSH auth method: Private key

and the exit out giving time out. Now, i can consider increasing the execution time but it already takes a fare amount of time before giving that error. I don't know what I am doing wrong. Here is my VAGRANTFILE

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(“2”) do |config|

config.vm.box = “ubuntu/precise64”

config.vm.provider :virtualbox do |vb| vb.customize [‘modifyvm’, :‘1cf9e703-607e-4338-9162-20abbeca94b0’, ‘–pae’, ‘on’] vb.customize [‘modifyvm’, :‘1cf9e703-607e-4338-9162-20abbeca94b0’, ‘–hwvirtex’, ‘off’] vb.customize [‘modifyvm’, :‘1cf9e703-607e-4338-9162-20abbeca94b0’, ‘–vtxvpid’, ‘off’] end

end

Answer

I had this issue also and I fixed it by opening up the "Oracle Virtual Box Manager" GUI. Go to "Settings" -> "Network" and choose "Adapter 1" then expand the option by clicking on the arrow and make sure that "Cable Connected" is checked.