Reputation: 1572
I could not figure out where I made a mistake here. My command vagrant up
replies with the following lines
$ vagrant up
Check your Homestead.yaml file, the path to your private key does not exist.
Check your Homestead.yaml file, the path to your private key does not exist.
Upvotes: 113
Views: 90310
Reputation: 581
For Windows users, you can use PuTTYgen to generate public/private key pair. Then save the public key as mypublickey.pub
. and private key as myprivatekey.ppk
.
In homestead.yaml
change to the following:
authorize: C:\Users\YOUR_USERNAME\.ssh\mykey.pub
keys:
- C:\Users\YOUR_USERNAME\.ssh\myprivatekey.ppk
Upvotes: 32
Reputation: 2605
You can also use git bash to generate SSH keys automatically for windows
Upvotes: 2
Reputation: 91233
You don't need to generate a key. Simply run this:
# touch ~/.ssh/id_rsa
Then
# vagrant up
Upvotes: 56
Reputation: 2833
You want to follow these steps from terminal
Generate a ssh key ssh-keygen -t rsa -b 4096 -C "[email protected]"
Start ssh agent eval "$(ssh-agent -s)"
Add your SSH private key to the ssh-agent ssh-add -k ~/.ssh/id_rsa
Then run vagrant up
Upvotes: 220