所以我以为我终于在 Windows 上完成了所有设置...然后遇到了这个问题。
当前设置
URL: ssh://user@host:port/myapp.git
已经运行 Putty - 并且可以直接通过 ~/.ssh/authorized_keys 使用有效的 .ppk key 进行连接。在 Git 和 TortoiseGIT 中——我将两者都设置为使用“plink.exe”。
Putty 工作正常 - 没问题 - 但是当我将该 URL 运行到 bash 中时,我得到了一个 git clone (url)
fatal: the remote end hung up expectedly
在 cygwin bash 终端中 - 运行“ssh user@host” - 完全没有问题。
有人建议吗?
最佳答案
我发现每次都可以使用 Git 包中的 ssh.exe,而不是 cygwin 附带的 ssh(默认)。 使用这个导出的变量似乎有帮助;它速度较慢(2 倍或更多)但更稳定。将其作为另一种解决方法。
$ export GIT_SSH=/cygdrive/c/Program\Files/Git/bin/ssh.exe
仅供引用: 此版本的 Msysgit 附带 OpenSSH 4.6p1、OpenSSL 0.9.8e。 [作品] Cygwin 的 SSH 是 OpenSSH 5.5p1,OpenSSL 0.9.8n。 [不起作用]
关于windows - Git fatal error : remote end hung up,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1493645/