makersacademy / problem-solving

For problem-solving during the PreCourse
6 stars 2 forks source link

~/.ssh/config - No such file or directory #122

Closed SecretSurfSpot closed 6 years ago

SecretSurfSpot commented 6 years ago

Hi All,

I'm working my way through the: "Generating a new SSH key and adding it to the ssh-agent" Page - url below: "https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/"

On the section "Adding your SSH key to the ssh-agent" I'm hitting an issue:

At Step 2, I enter the command "~/.ssh/config", but get the output "No such file or directory"

Everything up to this point seems to be fine:

I'm on macOS High Sierra 10.13.6

Any help would be greatly appreciated :)

Thanks, Andrew

Lucx14 commented 6 years ago

looks like ~/.ssh/config is the path to a config file in the .ssh directory, cd into .ssh from the root directory and the config file should be there to check or modify hope that helps

SecretSurfSpot commented 6 years ago

Thanks Lucx14 for the response.

I've looked in the ~/.ssh directory, but there is no "config" file in there.

I have however managed go progress and gotten to be able to push and pull to github, so I'm guessing that step wasn't absolutely necessary?

Thanks again.

Andrew

jdm79 commented 6 years ago

Hi Andrew,

I've attached a screenshot of my ~/.ssh config file for reference, anyway.

screen shot 2018-07-12 at 09 24 45
SecretSurfSpot commented 6 years ago

Thanks jdm79!