Git配置了公鑰之后還是出錯,該怎么解決?


在Git下載和提交時,明明配置過了公鑰,但是還是報錯沒有權限,報錯信息如下:

sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.

那么可以試試執行下面兩條命令:

$ eval `ssh-agent -s`
Agent pid 32025
$ ssh-add -l
The agent has no identities.

以上方法解決了我的問題,如果不能解決您的問題請您諒解,再查詢解決方法。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM