我想和Laravel一起开始一个项目,但是在任何工作之前进行设置都是可怕的。我正在观看这段视频:https://www.youtube.com/watch?v=bC8OjU5ZlJQ并且在11:35左右标记我刚刚得到这个:error
这就是我的Homestead.yaml的配置方式:
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/web/sites
to: /home/vagrant/sites
sites:
- map: test.app
to: /home/vagrant/sites/test
databases:
- homestead
不知道我做错了什么,感谢任何帮助!
的副本答案 0 :(得分:1)
您需要创建公钥。你可以use ssh-keygen
command for this:
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/schacon/.ssh/id_rsa):
Created directory '/home/schacon/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/schacon/.ssh/id_rsa.
Your public key has been saved in /home/schacon/.ssh/id_rsa.pub.
The key fingerprint is:
d0:82:24:8e:d7:f1:bb:9b:33:53:96:93:49:da:9b:e3 schacon@mylaptop.local