在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.
以上方法解決了我的問題,如果不能解決您的問題請您諒解,再查詢解決方法。