使用Git上传时出错
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有在 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.
你还必须安装 openssh。请重新运行 cygwin 安装程序并检查 openssh
you have to install openssh as well. Please re-run the cygwin setup and check openssh