开发者

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 a开发者_运维技巧nything up to use it.


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:

Git is failing to push in puttycyg because of SSH error

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜