使用 Git 时出现权限被拒绝(公钥)错误?

Gaz*_*caj 4 git github git-push

我试图在 git commit 之后推送我的项目,但遇到错误:

git push
sign_and_send_pubkey: signing failed for RSA "/home/acer/.ssh/id_rsa" 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.
Run Code Online (Sandbox Code Playgroud)

已连线,因为我之前在同一项目上推送了其他更改,并且此错误仅出现在这个项目中!!!!

Séb*_*rre 8

解决了感谢$ ssh-add ~/.ssh/id_rsa

  • 有人知道这实际上是做什么的吗? (4认同)