Default password to connect to vagrant when using `homestead ssh` for the first time


I'm trying to connect to vagrant via homestead ssh:

vagrant@'s password:

But my public key password doesn't work.
My Homestead.yaml looks like this:

authorize: ~/.ssh/

    - ~/.ssh/id_rsa

I'm using "Laravel Homestead version 2.0.14" with "Vagrant 1.7.2".

Best Answer

After trying a lot of passwords and becoming totally confused why my public key password is not working I found out that I have to use vagrant as password.

Maybe this info helps someone else too - that's because I've written it down here.

According to the Vagrant documentation, there is usually a default password for the user vagrant which is vagrant.
Read more on here: official website

In recent versions however, they have moved to generating keypairs for each machine. If you would like to find out where that key is, you can run vagrant ssh -- -v. This will show the verbose output of the ssh login process. You should see a line like

debug1: Trying private key: /home/aaron/Documents/VMs/.vagrant/machines/default/virtualbox/private_key