fiberOptics
fiberOptics

Reputation: 7165

How to change the default location for saving ssh on git?

I've been spending hours looking for a solution on this problem.
As you can see on the first image, I was trying to create ssh key:

enter image description here

The default directory was: C:\Users\BC1\.ssh
But when I look at it, I don't find the key:

enter image description here

The keys are located in C:\Windows\System32, but not in the directory shown above.

I believe that if I got this successfully, I can just edit the key and replace the content with the generated key from PuTTY and then my problem on Permission denied can be solved.
Hope someone could help.

Upvotes: 0

Views: 764

Answers (1)

Christoph Eberhardt
Christoph Eberhardt

Reputation: 450

When creating the key, just hit enter when your asked for the file name to save the key in instead of entering "key", like you did in the screenshot.

It's possible, that you can find the key in C:\Windows\system32\key right now, because this was the working directory when you first created the key.

Upvotes: 3

Related Questions