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

来源:互联网 发布:数据修炼系统顶点 编辑:程序博客网 时间:2024/06/01 08:01

如果在确定key 值添加到github中,在push的时候依旧提示

123deMacBook-Pro:webMCV a123$ git push -u origin masterPermission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

那么可以通过使用如下命名查找问题:

123deMacBook-Pro:.ssh a123$ ssh-add -lThe agent has no identities.这个时候说明你添加的key并没有被使用, 可以通过命令:ssh-add ~/.ssh/mjlfto将你创建的key投入使用

添加成功后再次push, 问题就解决了

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