Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

The first line shows you the error:

No such file or directory - /Users/me/.ssh/id_rsa.pub

You haven't properly configured your SSH key location. You need to do something like:

vim Homestead/Homestead.yaml

and change the /me/ directories to /Colin/. This is assuming you have an SSH key pair setup. If you don't, run this command in terminal first:

ssh-keygen -t rsa -C "[email protected]"
Last updated 2 years ago.
0

Thanks for your help Josh!

I changed the paths in the Homestead.yaml file. I had created a SSH key pair before, but I didn't do it in the Homestead directory. I ran the command again while I was in the Homestead directory and I still got the same error.

Looking at the key generation, it is putting the key into my user folder, not into the Homestead folder:

Colins-Mac-Pro:Homestead Colin$ ssh-keygen -t rsa -C "myemailaddress"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/Colin/.ssh/id_rsa):

I tried this:

Enter file in which to save the key (/Users/Colin/.ssh/id_rsa): /Users/Colin/Homestead/.ssh/id_rsa/homestead

and, after inputting the passphrase, got this:

open /Users/Colin/Homestead/.ssh/id_rsa/homestead failed: No such file or directory.

Should I manually create the .ssh and .ssh/id_rsa folders in the Homestead folder?

Last updated 2 years ago.
0

You shouldn't have to manually create anything for SSH. Once you run this command (doesn't matter where you run it) the key will exist in /Users/Colin/.ssh :

ssh-keygen -t rsa -C "[email protected]"
Last updated 2 years ago.
0

Thanks again. I've moved the keys that were created into the ~/.ssh directory, and renamed them id_rsa and id_rsa.pub.

I think that has solved the one issue (I hope). I don't get the same error as before. No I have a new one.

Now the terminal tells me:

* The host path of the shared folder is missing: /Users/Colin/Code 

Here's the full history:

Colins-Mac-Pro:~ Colin$ cd ~/Homestead
Colins-Mac-Pro:Homestead Colin$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The host path of the shared folder is missing: /Users/Colin/Code 

Any idea why I don't have this Code directory and where I get it?

Last updated 2 years ago.
0

cdpritcha said:

Thanks again. I've moved the keys that were created into the ~/.ssh directory, and renamed them id_rsa and id_rsa.pub.

I think that has solved the one issue (I hope). I don't get the same error as before. No I have a new one.

Now the terminal tells me:

* The host path of the shared folder is missing: /Users/Colin/Code 

Here's the full history:

Colins-Mac-Pro:~ Colin$ cd ~/Homestead
Colins-Mac-Pro:Homestead Colin$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The host path of the shared folder is missing: /Users/Colin/Code 

Any idea why I don't have this Code directory and where I get it?

This is a shared folder between your Vagrant VM and your Mac. Create a folder Code in /users/Colin, or change the path to an existing folder with your laravel code in Homestead.yaml.

Last updated 2 years ago.
0

Thanks . Seems to be working now. I appreciate the help!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

cdpritcha cdpritcha Joined 4 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.