由于 SSH 错误,Git 无法推送 puttycyg

标签 git ssh cygwin puttycyg

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

git push origin master

我收到以下错误:

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

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

最佳答案

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

alt text

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

关于由于 SSH 错误,Git 无法推送 puttycyg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2908491/

相关文章:

laravel - 执行 Git 推送 Laravel 时不包含存储链接

linux - 为什么我不能将文件夹上传到 Linux EC2 实例?

linux - 在smartgit中配置ssh私钥

python - 如果在 python shell 中手动输入命令,则 paramiko 脚本有效

g++ - 在Cygwin中安装g++包后找不到g++

Cygwin、gcc 和 C_INCLUDE_PATH

Git:如何 merge 多年来分歧很大的复杂分支

git - 不能将 git 与 aptana 一起使用

git - 使用所有分支更新 fork 的 Github 存储库

cygwin - 将日志写入标准输出 (MPI)