【问题标题】:Git push hangs when pushing via ssh通过 ssh 推送时 Git 推送挂起
【发布时间】:2013-07-22 21:43:40
【问题描述】:

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

git push origin develop -v

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

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

git remote set-url origin git@github.com:username/Forkedrepo.git
ssh -T git@github.com

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

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

【问题讨论】:

    标签: git github ssh git-push git-remote


    【解决方案1】:

    经过多次挠头后很容易回答。

    不要使用 Cygwin 访问 github。另一种方法是在 Cygwin 中执行所有正常的终端功能,然后使用 Windows 命令行 for
    git push origin

    确保已将 ssh 密钥添加到您的帐户。这里是steps to add ssh to github。还要确保您的 ssh 密钥有密码。

    【讨论】:

      【解决方案2】:

      这是an answer I just posted elsewhere的副本

      我想知道这是否与我的相同......

      1. 进入腻子
      2. 单击已保存会话中的“默认设置”。点击加载
      3. 转到连接 -> SSH -> 错误
      4. 将“PuTTY 的 SSH-2 'winadj' 请求中的阻塞”设置为开启(而不是自动)
      5. 在树视图中返回会话(列表顶部)
      6. 单击“已保存会话”框中的“默认设置”。点击保存。

      这(几乎一字不差)来自https://tortoisegit.org/issue/1880

      【讨论】:

        猜你喜欢
        • 2013-05-30
        • 1970-01-01
        • 1970-01-01
        • 2016-10-04
        • 2021-06-18
        • 1970-01-01
        • 2021-11-08
        • 1970-01-01
        • 2011-05-21
        相关资源
        最近更新 更多