Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.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_Ssh_Version Control_Repository_Push - Fatal编程技术网

使用git推送到存储库时权限被拒绝

使用git推送到存储库时权限被拒绝,git,ssh,version-control,repository,push,Git,Ssh,Version Control,Repository,Push,当我使用命令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. 我正在使用Windows10 我想我没有正确登录 我在上看到了答案,但我无法使用命令ssh。我想这是因为我在W

当我使用命令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.
我正在使用Windows10

我想我没有正确登录

我在上看到了答案,但我无法使用命令
ssh
。我想这是因为我在Windows电脑上


此外,Github表示建议使用https来支持ssh。

如果您使用的是Windows机器,那么有一个扩展名为

git extension
下载之后,您必须使用git扩展名从git服务器推送或拉取ssh文件


您可以在git服务器帐户中创建SSH文件。之后,您可以使用git扩展来尝试此操作,您必须从git存储库内部执行该命令。即。,
包含.git文件的文件夹

我得到错误
git:“extension”不是git命令。请参阅“git--help”。
。这是git服务器的GUI应用程序。这不是命令。下载名为git extension的应用程序并对其进行配置。这是一个简单的步骤,即Git的GUI客户端(其中一个),我在Git代表内部执行命令。我已使用
Git init
初始化,使用
Git add README.md
添加了一个新文件,使用
Git commit-m“commit msg”
提交,使用
git远程添加原点添加原点git@github.com:username/rep name.git
,但现在我无法推送到代表处