I'm using cygwin git on windows 7 and everytime I do any operation that requires communication with github via SSH, I get the following message:
Could not create directory '/home/ltb/.ssh'.
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?
So far so good, I understand what's going on above. But once I enter yes, SSH should be able to insert the github key in the known_hosts
file and move. Instead I get the following error message everytime:
Failed to add the host to the list of known hosts (/home/ltb/.ssh/known_hosts).
What am I doing wrong?
I wrote a blog post about this very problem. The solution lies in the fact that your home folder in cygwin is most likely under /cygdrive/c/home/ltb/
and NOT under /home/ltb/
as you listed above. You can fix it like this:
/home/<user>
to read /cygdrive/c/home/<user>
where <user>
is your cygwin username. Adjust this path accordingly if different.Hope this helps...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With