The authenticity of host 'github.com (13.229.188.59)' can't be established.

错误提示如下:

git remote add origin [email protected]:yyyyjinying/my-test.git
git push -u origin master
$ git push -u origin master
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.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

解决方法如下:

打开:Git Bash

The authenticity of host 'github.com (13.229.188.59)' can't be established._第1张图片

第一步:查看ssy是否存在:$ ls -al ~/.ssh

The authenticity of host 'github.com (13.229.188.59)' can't be established._第2张图片

第二步:如果没有生成新的ssy

    $ ssh-keygen -t rsa -b 4096 -c  "[email protected]"

The authenticity of host 'github.com (13.229.188.59)' can't be established._第3张图片

passphrase:输入你想要设置的密码

same passphrase again:重复确认密码

第三步:在github中配置你生成的ssy

    $clip < ~/.ssh/id_rsa.pub           //拷贝你的ssy秘钥到剪切板;

    之后就是github的setting->ssy->新建->复制啦

The authenticity of host 'github.com (13.229.188.59)' can't be established._第4张图片

第四步:成功!

The authenticity of host 'github.com (13.229.188.59)' can't be established._第5张图片






你可能感兴趣的:(ssy)