GitHub错误信息 - 权限被拒绝(公钥) [英] GitHub Error Message - Permission denied (publickey)

查看:286
本文介绍了GitHub错误信息 - 权限被拒绝(公钥)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人看到这个错误,并知道该怎么办?

我使用的终端,我在根,GitHub存储库存在,我不'不知道该怎么做。

 > git push -u origin master 
权限被拒绝(publickey)。
致命:无法从远程存储库读取。

请确保您拥有正确的访问权限
并存在存储库。


解决方案

GitHub无法验证您的身份。所以,要么你没有设置SSH密钥,因为你还没有在你的机器上设置一个您可以使用HTTPS URL而不是SSH / git URL来避免必须处理SSH密钥。这是 GitHub推荐的方法



更进一步,GitHub的专门针对该错误消息的帮助页面,并且更详细地解释了您可能的一切检查。


Anybody seen this error and know what to do?

I'm using the terminal, I'm in the root, the GitHub repository exists and I don't know what to do now.

> git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解决方案

GitHub isn't able to authenticate you. So, either you aren't setup with an SSH key, because you haven't set one up on your machine, or your key isn't associated with your GitHub account.

You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys. This is GitHub's recommended method.

Further, GitHub has a help page specifically for that error message, and explains in more detail everything you could check.

这篇关于GitHub错误信息 - 权限被拒绝(公钥)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆