[email protected]:权限被拒绝(公钥)

杰西

我创建了一个新的远程仓库,并试图使用git push -u origin master命令后,我对我的本地文件推到新的存储库中的第一次add它和commit它。但是,它弹出了[email protected]: Permission denied (publickey). fatal: Could not read from remote repository.如何解决此致命错误?

我已经尝试过
使用Git时如何解决“权限被拒绝(公钥)”错误?似乎此链接中的问题是第一次使用git发生。我已经使用了git一段时间,是否仍然需要遵循此解决方案?谁能给我一个更具体的解决方案?

这是我得到的致命错误

C:\Users\ASUS\Desktop\React-Practice App\my-app>git status
On branch master
nothing to commit, working tree clean

C:\Users\ASUS\Desktop\React-Practice App\my-app>git push -u origin master
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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

您正在通过SSH访问GitHub。首先生成一个SSH密钥对;然后将公钥添加到GitHub。

生成密钥对:

ssh-keygen -t rsa -b 4096 -C “[email protected]

https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agenthttps://help.github.com上查看更多信息/ zh-CN / articles /将新的ssh-key添加到您的github帐户

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

git权限被拒绝(公钥)

每次重新打开git bash:[email protected]:权限被拒绝(公钥)

Bitbucket / Github:权限被拒绝的公钥

GitHub错误消息-权限被拒绝(公钥)

与Github Ansible:权限被拒绝(公钥)

Github SSH访问:权限被拒绝(公钥)

为什么[email protected]:Windows中的权限被拒绝(公钥)?

[email protected]:进行酒桶安装“程序”时,权限被拒绝(公钥)

Ansible git权限被拒绝(公钥)

Git权限被拒绝(公钥)错误

BitBucket-Git-权限被拒绝(公钥)

Git克隆“权限被拒绝(公钥)”

Ansible git clone github 权限被拒绝(公钥)

Git 子模块:[email protected]:权限被拒绝(公钥)。致命:无法从远程存储库读取

[email protected]:权限被拒绝(公钥)。严重的:无法从远程存储库读取

从xero-python-oauth2-starter-master安装依赖项时出现“ [email protected]:权限被拒绝(公钥)”

[email protected]:权限被拒绝(公钥)。致命:无法从远程存储库读取。在云9上

最新的git版本拒绝Git权限(公钥)

Maven发布插件:权限被拒绝(公钥)Github

GitHub:权限被拒绝(公钥)。致命:远端意外挂断

无法通过ssh连接到github;权限被拒绝(公钥)

Capistrano在git:check上部署失败-权限被拒绝(公钥)

验证连接时拒绝git权限(公钥)

使用Git(Bitbucket)拒绝Dockerfile公钥权限

从远程 git repo 克隆时权限被拒绝(公钥)

Git克隆自动化错误权限被拒绝(公钥)

git push origin master:权限被拒绝(公钥)错误

git-codecommit拒绝aws权限(公钥)

Fedora 33:[email protected]:权限被拒绝(公钥)