我已经进行了大量搜索并测试了不同的解决方案,但没有成功!
当我想推送代码时,出现以下错误:
Warning: the ECDSA host key for 'git.mywebsite.ir' differs from the key for the IP address '164.138.23.11'
Offending key for IP in /home/alireza/.ssh/known_hosts:10
Matching host key in /home/alireza/.ssh/known_hosts:1
Are you sure you want to continue connecting (yes/no)? yes
每次推送更改时,我应该怎么做才能删除此消息?任何的想法?
ssh-keygen -R git.mywebsite.ir
解决了我的问题。