Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git权限被拒绝公钥_Git_Github - Fatal编程技术网

Git权限被拒绝公钥

Git权限被拒绝公钥,git,github,Git,Github,我通过以下链接获得了我的github回购[link]。设置成功了。但是,当我尝试进行初始推git push 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回购[link]。设置成功了。但是,当我尝试进行初始推git push 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. 

这是一个公开回购协议,我不知道如何看我是否得到了正确的许可。不确定我使用的用户名。我从未被要求输入用户名

如果您要通过ssh访问远程,则必须将ssh公钥上载到GitHub,您可以找到操作指南


如果您通过HTTPS url访问回购协议,也可以使用github用户名/密码。

您是如何创建回购协议的?请按照链接中的步骤进行操作。初始化