5

I've been using puttycyg as a Cygwin terminal for my rails development. I've set up a git repository on a project management website and now I want to push my code to it with the following command:

git push origin master

I'm getting the following error:

error: cannot run ssh: No such file or directory
fatal: unable to fork

I know ssh is used for authentication but I don't know if I need to set anything up to use it.

tpower
  • 56,100
  • 19
  • 68
  • 100

2 Answers2

8

The problems was that I didn't have SSH installed with Cygwin. I ran the Cygwin setup.exe file again and when asked to select packages I searched for ssh and checked all I found:

alt text

Once this was done I was getting authentication errors so I used the ssh-keygen command to generate the required keys, instructions on how do this.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
tpower
  • 56,100
  • 19
  • 68
  • 100
1

My bet is you need to install OpenSSH. Try reading OpenSSH and PuTTY. It's a decent guide to installing / configuring it for a Windows enviornment and setting up SSH keys, something you'll need with git.

Josh K
  • 28,364
  • 20
  • 86
  • 132
  • Thanks I'll have a read, looks like a lot to it but at least I might learn something. – tpower May 25 '10 at 21:10
  • Learning's always good. Once you get the basics (key generation in particular) down it's not hard at all to repeat. – Josh K May 25 '10 at 21:15