Can't run vagrant provision for Laravel Homestead Vagrant

750 views Asked by At
  • I refer to Laravel's official documentation to install Homestead.

  • When I run the vagrant reload --provision , I get the error message shown below.

  • I found my mac .ssh directory, it is empty.
  • But Homestead.yaml includes this line authorize: ~ / .ssh / id_rsa.pub, I do not understand what is wrong.

error screenshot

Homestead.yaml

it says parallels is ok

1

There are 1 answers

2
Mattias Hallström On

I'm not sure, but I thought that keys where created when you add the homestead box to vagrant.

Anyway, the error says what the problem is. You don't have a ssh key so you need to create a new.

Enter your home directory (on your mac) and run this command:

ssh-keygen -t rsa -C "[email protected]"

Then check directory: ~/.ssh/ so files are created and have the same name as referenced in Homestead.yaml