我不能做 git push:git@github.com: Permission denied (publickey)

Posted

技术标签:

【中文标题】我不能做 git push:git@github.com: Permission denied (publickey)【英文标题】:I can't do git push: git@github.com: Permission denied (publickey) 【发布时间】:2021-09-23 08:37:57 【问题描述】:

我无法在特定项目中执行git push 命令,但是,在其他项目中一切顺利,我不知道还能做什么。我有一个密钥,这个密钥是在 GitHub 上注册的,显然代理正在工作。

这是我尝试git push时的结果:

username@lenovo-ideapad-s145:~/development/projects/Learning-Laravel$ git push
sign_and_send_pubkey: signing failed for ED25519 "/home/username/.ssh/id_ed25519" from agent: agent refused operation
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

我已阅读文档,但对我帮助不大。

【问题讨论】:

***.com/q/44250002/7976758 发现于***.com/… 【参考方案1】:

您不会在您的机器中配置 ssh。检查这个答案是否有帮助

GitHub Error Message - Permission denied (publickey)

【讨论】:

以上是关于我不能做 git push:git@github.com: Permission denied (publickey)的主要内容,如果未能解决你的问题,请参考以下文章

解决git push报错:failed to push some refs to ‘git@github.com:anightmonarch/JavaEasyGoing.git‘

解决git push报错:failed to push some refs to ‘git@github.com:anightmonarch/JavaEasyGoing.git‘

如何撤消“git push --mirror”?

git push报错error: failed to push some refs to 'git@github.com:

git报错failed to push some refs to 'git@github.com:Markprint/github.git'

git push 代码 报没有权限的错误 的解决方法之一