Windows上的Git + SSH。 Git拉模死于“应用程序错误”。

| 几天前,我在Windows上的git设置运行良好。我在cygwin上使用git。一天早晨,cygwin命令行上的“ git pull”引发了以下错误。 当我连接到其他服务器时,SSH可以正常工作。只有与git结合使用时,它才会死于上述错误。 Git跟踪输出如下所示。
$ git pull
trace: exec: \'git-pull\'
trace: run_command: \'git-pull\'
trace: built-in: git \'rev-parse\' \'--git-dir\'
trace: built-in: git \'rev-parse\' \'--show-toplevel\'
setup: git_dir: .git
setup: worktree: c:/path/
setup: cwd: c:/path/
setup: prefix: (null)
trace: built-in: git \'ls-files\' \'-u\'
setup: git_dir: .git
setup: worktree: c:/path/
setup: cwd: c:/path/
setup: prefix: (null)
trace: built-in: git \'symbolic-ref\' \'-q\' \'HEAD\'
setup: git_dir: .git
setup: worktree: c:/path
setup: cwd: c:/path
setup: prefix: (null)
trace: built-in: git \'config\' \'--bool\' \'branch.master.rebase\'
trace: built-in: git \'rev-parse\' \'-q\' \'--verify\' \'HEAD\'
setup: git_dir: .git
setup: worktree: c:/path
setup: cwd: c:/path
setup: prefix: (null)
trace: built-in: git \'fetch\' \'--update-head-ok\'
trace: run_command: \'ssh\' \'hostname\' \'git-upload-pack \'\\\'\'gitfile.git\'\\\'\'\'
fatal: The remote end hung up unexpectedly
SSH到同一主机似乎很好。主机的配置位于〜/ .ssh / config中
$ ssh -v hostname
OpenSSH_5.1p1, OpenSSL 0.9.8h 28 May 2008
debug1: Reading configuration data /home/user/.ssh/config
debug1: Applying options for sms
debug1: Connecting to gerrit.hostname.com [IP_ADDR] port PORT_NUM.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type 1
debug1: Remote protocol version 2.0, remote software version SSHD-CORE-0.4.0-R897374
debug1: no match: SSHD-CORE-0.4.0-R897374
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host \'[hostname.com]:PORT\' is known and matches the RSA host key.
debug1: Found key in /home/user/.ssh/known_hosts:34
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/user/.ssh/id_rsa_gupshup
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
gerrit: no shell available
debug1: channel 0: free: client-session, nchannels 1
Connection to hostname.com closed.
Transferred: sent 2584, received 1888 bytes, in 1.5 seconds
Bytes per second: sent 1744.8, received 1274.8
debug1: Exit status 127
使用GIT_SSH变量将SSH更改为C:\\ Program Files \\ Git \\ bin \\ ssh.exe会产生相同的错误屏幕。尝试使用(Putty的)plink配置Git不会产生任何结果。我做错了。 Git版本是
git version 1.7.4.msysgit.0
这个错误有解决方案吗?     
已邀请:
代替cygwin,安装virtualbox和ubuntu服务器。完成此操作后,在主机和来宾之间进行文件夹共享。 Cygwin不值得一直持续提供的痛苦。     
我使用Windows XP遇到了同样的问题。为了解决该问题,我关闭了正在运行的mcafee并重新安装了git bash。该错误有时会出现,但我只是忽略它,然后重试该命令即可。     

要回复问题请先登录注册