Gediminas Gediminas - 6 months ago 38
PHP Question

Can't set up Laravel, vagrant up doesn't work

I want to start a project with Laravel, but the set up before any work is just horrendous. I'm watching this video: and right around the 11:35 mark I just get this: error

This is how my Homestead.yaml is configured:

authorize: ~/.ssh/

- ~/.ssh/id_rsa

- map: ~/web/sites
to: /home/vagrant/sites

- map:
to: /home/vagrant/sites/test

- homestead

Don't really know what I'm doing wrong, any help is appreciated!


You need to create public key. You can 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/ The key fingerprint is: d0:82:24:8e:d7:f1:bb:9b:33:53:96:93:49:da:9b:e3 schacon@mylaptop.local