Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
440 views
in Technique[技术] by (71.8m points)

git - GitHub错误消息-权限被拒绝(公钥)(GitHub Error Message - Permission denied (publickey))

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.

(我正在使用终端,我在根目录中,GitHub存储库存在,我现在不知道该怎么办。)

> 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.
  ask by webwrks translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

GitHub isn't able to authenticate you.

(GitHub无法验证您的身份。)

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.

(因此,或者您没有设置SSH密钥,因为您尚未在计算机上进行设置 ,或者您的密钥未与GitHub帐户相关联。)

You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys.

(您也可以使用HTTPS URL代替SSH / git URL,以避免必须处理SSH密钥。)

This is GitHub's recommended method .

(这是GitHub的推荐方法 。)

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

(此外,GitHub上有一个专门针对该错误消息帮助页面 ,并详细说明了您可以检查的所有内容。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...