使用Git上传时出错

发布于 2024-10-09 17:56:23 字数 370 浏览 2 评论 0原文

我是 Git hub 的新手,能够成功创建 ssh 密钥并将其上传到网站,但是当我输入

git Push origin master

时,我收到以下错误:

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

我正在 Windows Vista 计算机上使用 Cygwin,如果这也有用的话。好的..安装 openssh 后我现在收到错误:

Permission denied (publickey)
fatal: the remote end hung up unexpectedly

I am new to Git hub and was able to successfully create an ssh key and upload it to the website however when I type in

git push origin master

I receive the following error:

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

I am using Cygwin on a windows Vista machine if that is also useful. Ok.. after installing openssh I now get the error:

Permission denied (publickey)
fatal: the remote end hung up unexpectedly

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苦妄 2024-10-16 17:56:23

您没有在 Cygwin 中安装 ssh,或者它不在您的路径中。确保您能够从 Cygwin 提示符成功运行 ssh --version


对于第二个错误,这表明您的 ssh 客户端尝试进行身份验证的密钥不受远程服务器信任。验证公钥是否已成功添加到您的 Github 配置文件中,并验证您添加的公钥是否与您尝试使用的私钥相对应。

You do not have ssh installed within Cygwin, or it's not in your path. Make sure that you are able to run ssh --version successfully from the Cygwin prompt.


For the second error, this indicates that the key your ssh client is attempting to authenticate with is not trusted by the remote server. Verify that the public key has been successfully added to your Github profile, and also verify that the public key you've added corresponds to the private key you are attempting to use.

爱格式化 2024-10-16 17:56:23

你还必须安装 openssh。请重新运行 cygwin 安装程序并检查 openssh

you have to install openssh as well. Please re-run the cygwin setup and check openssh

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文