WARNING: POSSIBLE DNS SPOOFING DETECTED!
解决方案:
1: cd ~/.ssh
把known_hosts里github那行信息,删除或者注视掉(我选择了注释掉)
2:再运行 git push origin master 出现:
The authenticity of host 'github.com (*)' can't be established.
ECDSA key fingerprint is ****.
Are you sure you want to continue connecting (yes/no)?
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,***' (ECDSA) 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.
3: 上述问题,需要在Github上更新公钥。更新后再运行就好了。