I checked all the solutions on this post and the post mentioned above, and I did not find a solution that worked for me.
I am using Git 1.9.5 Preview in Windows 7 with the following configuration: - Run Git from the Windows command line - Place a Windows-style checkout, commit a Unix-style line ending
I used the Git Bash 'console for everyone ... And everything was fine until I tried to set the SSH keys. The GitHub documentation says that you need to do the following (do not run these commands until you finish reading the message):
Make sure ssh-agent is enabled:
If you are using Git Bash, enable ssh-agent:
If you are using another terminal prompt, such as msysgit, enable ssh-agent: # start the ssh-agent in the background eval $(ssh-agent -s)
Now, of course, I missed the fact that you had to do one or the other. Thus, I ran these commands several times because the ssh-add command did not execute, so I went back to this step and kept repeating again and again.
The result is a single Windows ssh-agent process that is created each time you run these commands (pay attention to the new PID every time you enter these commands?)
So, Ctrl + Alt + Del and click End Process to stop the ssh-agent.exe process .
Now that all the spoiled things from failed attempts will be cleared, I will tell you how to make it work ...
In the ' Git Bash ':
Run the ssh-agent.exe process
eval $(ssh-agent -s)
And set the SSH keys
ssh-add "C:\Users\MyName\.ssh\id_rsa"
* Adjust the path above with your username and make sure the directory location * /. ssh is in the right place. I think you selected this place during the installation of Git? Maybe not ...
The part I did wrong before I realized this was not using quotes around the ssh-add location. The above describes how to enter it in Windows.
derekmx271 Jun 24 '15 at 4:29 2015-06-24 04:29
source share