Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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上有一个专门针对该错误消息帮助页面 ,并详细说明了您可以检查的所有内容。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...