Reputation: 447
I generated key set of keys using the method shown here.
It worked fine and I was able to register my public key and clone the git repository i needed. Then out of nowhere it stopped working. I decided to try to start over, so I backed up and deleted the old .ssh-folder but when I run ssh-keygen it suggests the following location:
/c/Users/MyName/.ssh/.ssh/id_rsa
As you can see it nests the .ssh-folder twice. When I looked in my backup, it turned out that it was the same here. The reason it stopped working must be because git or git bash or whatever is now looking in the wrong folder for my ssh-keys. I tried reinstalling git and git bash but this didn't do anything.
Does anyone know why it is nesting the .ssh-folder twice and how I might be able to fix it?
Upvotes: 2
Views: 1241
Reputation: 1327064
Check the value of the environment variable HOME
echo $HOME
If it is /c/Users/MyName/.ssh
,that would explain the suggestion you have.
Make sure your HOME
is set to your %USERPROFILE%
Upvotes: 3