Search code examples
ubuntusshvagrantprivate-key

Vagrant SSH default key passphrase?


I think I messed up something simple, normally you should be able to instantly connect to your Vagrant VM using vagrant ssh. However, it's currently different for me.

C:\Users\Sem\Documents\timeline>vagrant ssh
Enter passphrase for key 'C:/Users/Sem/Documents/timeline/.vagrant/machines/default/virtualbox/private_key':
[email protected]'s password:
[email protected]'s password:
[email protected]'s password:
Permission denied (publickey,password).

I found one other person having the same issue: https://github.com/coreos/docs/issues/10#issuecomment-48903893

OS: Windows 8.1 Pro

Vagrant version: 1.7.2

Vagrantfile:

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

Vagrant.configure("2") do |config|
    config.vm.box = "ubuntu/trusty64"
end

I did try multiple settings before, but if I use this Vagrantfile with vagrant destroy and vagrant up the problem remains.

If there is any information missing, please tell me.


Solution

  • Even though I was searching for something else I found the solution to this problem.

    I Added this to my Vagrantfile:

    config.vm.provider "virtualbox" do |v|
        v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
        v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
    end
    

    It also made the internet connection in my vagrant VM super fast! :)