Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git is failing to push in puttycyg because of SSH error

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.

like image 628
tpower Avatar asked May 25 '10 21:05

tpower


People also ask

Why git push is not working?

If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.

Why can't I push to github?

Simply put, git cannot make the change on the remote without losing commits, so it refuses the push. Usually this is caused by another user pushing to the same branch. You can remedy this by fetching and merging the remote branch, or using pull to perform both at once.


1 Answers

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.

like image 66
tpower Avatar answered Oct 10 '22 12:10

tpower