我想用Laravel开始一个项目,但是在任何工作之前的设置都是可怕的。我正在看这个视频:https://www.youtube.com/watch?v=bC8OjU5ZlJQ在11点35分左右我看到了这个:error
这是我的家园。配置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
我真的不知道我做错了什么,任何帮助都是感激的!EDIT: duplicate of Vagrant: missing file id_rsa
需要创建公钥。您可以使用ssh-keygen
命令:
$ 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