Cygwin git ssh to remote hangs

夙愿已清 提交于 2019-12-11 09:29:46

问题


I'm occuring a weird error running on my Windows 7 64bit system with Cygwin (latest one from their homepage) installed including ssh-agent etc. and separately the msysgit. (Cygwin terminal: git version 1.9.5.msysgit.0)

When I try to push a git repo via Cygwin through a vpn tunnel it freezes at this position with the cursor just blinking:

$ GIT_TRACE=1 git push live staging --verbose
trace: built-in: git 'push' 'live' 'staging' '--verbose'
trace: run_command: 'ssh' 'user@my-server.com' 'git-receive-pack '\''/home/remote/example.git'\'''
Pushing to user@my-server.com:/home/user/my-server.git
  1. First I thought there is a problem with my ssh key. But if I'm connecting directly to the server in Cygwin via ssh user@my-server.com it just asks for the passphrase and I'm in.
  2. If I'm running only ssh 'user@my-server.com' 'git-receive-pack '\''/home/remote/example.git'\''' I see all the git branches/versions etc.
  3. Lastly I tried to run the command git push live staging in the mysysgit directly and it worked.

But why it's not working via Cygwin? Any thoughts or hints how I can debug the freezing process in Cygwin or what I've missed out?

来源:https://stackoverflow.com/questions/28190018/cygwin-git-ssh-to-remote-hangs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!