I am trying to create my public/private rsa key pair with msysgit
I run this command:
ssh-keygen -C "[email protected]" -t rsa
Everything looks fine, I have the message
Enter file in which to save the key (/c/Users/user/.ssh/id_rsa)
Then I have the confirmation:
Your public key has been saved in project.pub
But I can't access the folder! It does not exist, it is not even an hidden folder. I don't understand why it does not generate. I am using Windows 7 Ultimate.
You can start with creating the expected folder, and check you can access it:
Make sure you do not have a Windows environment variable named
HOME
, which would take precedence when usingssh.exe
orssh-keygen.exe
commands from a CMD session (as opposed to a bash session).You can use (from CMD or bash)
That will create a
%USERPROFILE%\.ssh\mykey
and%USERPROFILE%\.ssh\mykey.pub
.As a test, I just created my key without any problem (Seven Ultimate 64bits, msysgit 1.6.5.1.1367.gcd48)
With the result:
Could you check in your bash session (so not CMD) what value your
$HOME
environment variable is set?