报错如下:
Cloning into 'flink'... The authenticity of host 'github.com (13.229.188.59)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,13.229.188.59' (RSA) to the list of known hosts. 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.执行命令重新生成rsa key
ssh-keygen -t rsa -C "git@github.com"拷贝 /Users/mac/.ssh/id_rsa.pub中的key到git 可以愉快的拉代码了。
原文链接:https://blog.csdn.net/qq_18506419/article/details/103930701