I faced a similar issue when running SSH or Git Clone in Windows. Following findings helps to solve my problem:
- When you run “rhc setup” or other ssh methods to generate ssh key, it will create the private key file id_rsa in .ssh folder in your home folder, default is C:\User\UserID
- Git for windows has its own .ssh folder in its installation directory. When you run git/ssh, it will look for private key file id_rsa in this folder
- Solved the problem by copying id_rsa from the home folder .ssh folder to the .ssh folder in the git installation directory
Also, I think there a way to “tell” git to use the default .ssh folder in home folder but still need to figure out how.