【问题标题】:Git is failing to push in puttycyg because of SSH error由于 SSH 错误,Git 无法推送 puttycyg
【发布时间】:2011-02-23 21:48:32
【问题描述】:

我一直使用 puttycyg 作为我的 Rails 开发的 Cygwin 终端。我已经在项目管理网站上建立了一个 git 存储库,现在我想使用以下命令将我的代码推送到它:

git push origin master

我收到以下错误:

error: cannot run ssh: No such file or directory
fatal: unable to fork

我知道 ssh 用于身份验证,但我不知道是否需要设置任何东西才能使用它。

【问题讨论】:

    标签: git ssh cygwin puttycyg


    【解决方案1】:

    问题是我没有使用 Cygwin 安装 SSH。我再次运行了 Cygwin setup.exe 文件,当被要求选择软件包时,我搜索了 ssh 并检查了我找到的所有内容:

    完成此操作后,我遇到了身份验证错误,因此我使用ssh-keygen 命令生成所需的密钥instructions on how do this

    【讨论】:

      【解决方案2】:

      我敢打赌,您需要安装 OpenSSH。尝试阅读OpenSSH and PuTTY。这是为 Windows 环境安装/配置它和设置 SSH 密钥的不错指南,这是 git 所需要的。

      【讨论】:

      • 谢谢,我会读一读,看起来很多,但至少我可以学到一些东西。
      • 学习总是好的。一旦掌握了基础知识(尤其是密钥生成),就不再难重复了。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-25
      • 2011-05-12
      • 1970-01-01
      • 2018-03-20
      • 2018-10-14
      • 1970-01-01
      • 2020-09-27
      相关资源
      最近更新 更多