git Permission denied (publickey). fatal: Could not read from remote repository.

来源:互联网 发布:linux改文件名 编辑:程序博客网 时间:2024/06/05 17:36

即使已经在Github中配置了私钥,但是在执行git pull的时候出现如下的错误:

Permission denied (publickey). fatal: Could not read from remote repository.

这是因为没有将ssh加入到验证ssh-agent中,可以通过以下的方式添加

ssh-add -K ~/.ssh/id_rsa

完整说明参照官网文档

参考:

Adding your SSH key to the ssh-agent

GitHub Error Message - Permission denied (publickey)

阅读全文
0 0
原创粉丝点击