Git报错:The RSA host key for xxx.com has changed

本文由清尘发表于2020-02-18 15:44属于技术文档分类

git clone远端代码时报错:The RSA host key for xxx.com has changed, and the key for the corresponding IP address xxx.xxx.xxx.xx is unknown

解决办法:删除本地known_hosts里面的缓存信息。

命令:ssh-keygen -R 域名(or ip)