如果在确定key 值添加到github中,在push的时候依旧提示
123deMacBook-Pro:webMCV a123$ git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
那么可以通过使用如下命名查找问题:
123deMacBook-Pro:.ssh a123$ ssh-add -l
The agent has no identities.
这个时候说明你添加的key并没有被使用, 可以通过命令:
ssh-add ~/.ssh/mjlfto
将你创建的key投入使用
添加成功后再次push, 问题就解决了