Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

More problems creating an SSH key

Kelly Small June 14, 2018

I'm following the section for creating an SSH key and I entered the command

ssh-keygen -t rsa -C "my email"

Next I'm prompted for a filename and the instructions say to just hit enter for the default.

Well instead of a default location like c:\user\ASUS my location is /h//.ssh/id_rsa

And if I search for a key by going to that directory with cd %userprofile%/.ssh there is no directory found. 

What am I doing wrong here?

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Champion
June 14, 2018

Your key should be under H:\.ssh (/h//.ssh... is UNIX style path that Git Bash is using). Make sure your File Explorer setting is set to show hidden files, folders and drives.

Kelly Small June 14, 2018

 What makes it decide to use H: ?  I would think the key would be stored locally on my hard drive.  In any case I do see the key file and will stumble onward.
thanks!

Mikael Sandberg
Community Champion
June 15, 2018

H: is used probably because your home drive is set to be that. Usually setting the home drive is something that your IT department sets in a login script. It can be overridden by setting the HOME environment variable.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events