从github拉代码失败,错误提示如下,
git clone git@github.com:huaweiluo/HWLeetCode-oc.git
Cloning into 'HWLeetCode-oc'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决办法如下,
ssh-add ~/.ssh/id_github
Identity added: id_xiaoju_rsa (email address)
#github#