通过ssh推送时Git推送挂起

问题描述 投票:4回答:3

尝试将开发分支推送到我的github存储库。

git push origin develop -v

连接挂起,挂起,挂起和挂起,永不超时。我从来没有收到错误消息,也没有“写对象”,也没有任何形式的交流。

通过ssh连接。已经验证我可以通过ssh连接到github,这意味着我的公钥有效。

git remote set-url origin [email protected]:username/Forkedrepo.git
ssh -T [email protected]

我还能做什么? FWIW,我可以通过ssh和git push连接到其他站点。我也知道我无法通过https通过此路由器进行连接。

使用Windows工作站和git push与其他非github远程存储库一起使用。

git github ssh git-push git-remote
3个回答
2
投票

经过大量的头部抓挠后,答案很容易。

请勿将Cygwin用于github访问。一种替代方法是在Cygwin中完成所有常规终端功能,然后使用Windows命令行git push origin

请确保已将ssh密钥添加到您的帐户。这是steps to add ssh to github。另外,请确保您的ssh密钥具有密码短语。


0
投票

这是an answer I just posted elsewhere的副本>

我想知道这是否和我一样...

  1. 进入腻子
  2. 在已保存的会话中单击“默认设置”。点击加载
  3. 转到连接-> SSH->错误
  4. 将“ PuTTY的SSH-2'winadj'请求的阻塞”设置为开(代替自动)
  5. 在树状视图中返回会话(列表顶部)
  6. 单击“已保存的会话”框中的“默认设置”。单击保存。
  7. 此(几乎逐字)来自https://tortoisegit.org/issue/1880


0
投票

此问题可能是由您的SSH代理问题引起的。

© www.soinside.com 2019 - 2024. All rights reserved.