gpt4 book ai didi

git - 使用 Git 时出现 Permission denied (publickey) 错误?

转载 作者:行者123 更新时间:2023-12-02 19:24:43 27 4
gpt4 key购买 nike

我试图在 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.

有线是因为我之前在同一个项目上推送了其他更改,而这个错误只出现在这个项目中!!!!

最佳答案

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

关于git - 使用 Git 时出现 Permission denied (publickey) 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62565343/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com