Is there a default password to connect to vagrant when using `homestead ssh` for the first time?

前端 未结 5 2027
礼貌的吻别
礼貌的吻别 2021-01-30 05:02

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

vagrant@127.0.0.1\'s password:

But my public key password doesn\'t work.

5条回答
  •  感情败类
    2021-01-30 05:26

    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.

    Edit:
    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
    

提交回复
热议问题