“守住心灵,身体也会因此得到保护”
—— 圣由科西斯警句,3.89
git拉代码时候如果出现下列错误
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
可能是因为升级系统导致安全性密钥长度不足造成,按官方文档重新生成ssh密钥即可
Creating SSH keys | Bitbucket Data Center 7.11 | Atlassian Documentation
mac系统生成后记得执行 ssh-add
ssh-add -K [私钥文件,就是那个不加.pub结尾的文件]
# 例如,ssh-add -K id_rsa