laravel 宅基地安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44463987/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 17:46:18  来源:igfitidea点击:

Homestead installation

laravelhomestead

提问by Mitesh

I could not figure out where I made a mistake here. My command vagrant upreplies with the following lines

我不知道我在这里犯了什么错误。我的命令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

在此处输入图片说明

回答by prola

You want to follow these steps from terminal

您想从终端执行这些步骤

Generate a ssh key ssh-keygen -t rsa -b 4096 -C "[email protected]"

生成 ssh 密钥 ssh-keygen -t rsa -b 4096 -C "[email protected]"

Start ssh agent eval "$(ssh-agent -s)"

启动 ssh 代理 eval "$(ssh-agent -s)"

Add your SSH private key to the ssh-agent ssh-add -k ~/.ssh/id_rsa

将您的 SSH 私钥添加到 ssh-agent ssh-add -k ~/.ssh/id_rsa

Then run vagrant up

然后运行 vagrant up

回答by Jake Wilson

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

您不需要生成密钥。只需运行这个:

# touch ~/.ssh/id_rsa

# touch ~/.ssh/id_rsa

Then

然后

# vagrant up

# vagrant up

回答by Ahmad.Net

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.

对于 Windows 用户,您可以使用 PuTTYgen 生成公钥/私钥对。然后将公钥保存为 mypublickey.pub。和私钥作为 myprivatekey.ppk。

In homestead.yamlchange to the following:

homestead.yaml 中更改为以下内容:

authorize: C:\Users\YOUR_USERNAME\.ssh\mykey.pub

keys:
    - C:\Users\YOUR_USERNAME\.ssh\myprivatekey.ppk

This may help somebody.

这可能会帮助某人。

回答by ottz0

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

您还可以使用 git bash为 windows 自动生成 SSH 密钥