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.
My Homestead.yaml looks like this:
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
I'm using "Laravel Homestead version 2.0.14" with "Vagrant 1.7.2".
I've a same problem. After move machine from restore of Time Machine, on another host. There problem it's that ssh key for vagrant it's not your key, it's a key on Homestead directory.
Solution for me:
run on terminal
Create a new pair of SSH keys
Copy content of public key
On other shell in Homestead VM Machine copy into authorized_keys
Now can access with vagrant ssh
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 a default password for the user
vagrant
which isvagrant
.Read more on here: official website
By default Vagrant uses a generated private key to login, you can try this:
This is the default working setup https://www.youtube.com/watch?v=XiD7JTCBdpI
Use Connection Method:
standard TCP/IP over ssh
Then ssh hostname:
127.0.0.1:2222
SSH Username:
vagrant password vagrant
MySQL Hostname:
localhost
Username:
homestead password:secret