在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.
以上方法解决了我的问题,如果不能解决您的问题请您谅解,再查询解决方法。