2

I created a repo on GitHub, and wanted to push local a local repo as I have done in the past. I can ssh -T git@github.com successfully, but git push -u origin master gives me the error:

error: cannot spawn C:\Users\Alec\.ssh: No such file or directory
fatal: unable to fork

My GIT_SSH variable is C:\Users\Alec\.ssh and in that directory I have my RSA keys. I even tried generating a new key and using that one, just to receive a the same error.

All of my local repos now show this error - I'm not sure what's gone wrong.

Edit: Not that I think it matters, but I get the same issue whether I use the Command Prompt or Git Bash.

Alec
  • 4,235
  • 1
  • 34
  • 46

3 Answers3

5

GIT_SSH is supposed to point to the ssh client (ssh.exe in your case), not the .ssh folder.

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
  • Thanks, I had installed Putty for a seperate purpose and I am guessing that overwrote my variable? I hadn't changed it myself. – Alec Apr 04 '12 at 16:44
0

I had the same problem as well. I thought is was something with the firewall as well, but I ended up re-installing Git on my PC and then it suddenly worked like a charm.

Cfrim
  • 920
  • 9
  • 19
-1

I've got the same problem with you. and all what i do is to shut down my comodo firewall, and that really works. so i suggest you close your firewall and antivirus software. Good luckl.

lichenbo
  • 1,019
  • 11
  • 13