报错:ECDSA host key for gitlab.xxxxx.com has changed and you have requested strict checking. Host k...

pycharm 更新代码后,push最新的commit,遇到报错
ECDSA host key for gitlab.xxxxxx.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

提示host key不可用

解决方法:

  1. 删除本地.ssh下的host文件
  2. 重新push一次即可

查找host文件的方法:
使用工具:everything 直接搜


image.png

你可能感兴趣的:(报错:ECDSA host key for gitlab.xxxxx.com has changed and you have requested strict checking. Host k...)