宅地安装

我不知道我在哪里犯了一个错误。我的命令 vagrant up用以下几行回复

$ 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.

enter image description here

84489 次浏览

You want to follow these steps from terminal

Generate a ssh key ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

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

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

# touch ~/.ssh/id_rsa

Then

# vagrant up

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