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