Homestead installation

Solution 1:

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

Solution 2:

You don't need to generate a key. Simply run this:

# touch ~/.ssh/id_rsa

Then

# vagrant up

Solution 3:

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

Solution 4:

You can also use git bash to generate SSH keys automatically for windows