I've done tons of search and tested different solutions, but gain no success!
When I want to push my codes, I receive the following error:
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
What should I do to remove this message every time I push my changes? Any idea?
ssh-keygen -R git.mywebsite.irsolved my problem. – Alireza Apr 26 '14 at 10:57ssh-keygen -R [ipaddress]:port. example of removing key for 192.168.0.1 on port 3456:ssh-keygen -R [192.168.0.1]:3456– Oki Erie Rinaldi Jun 05 '18 at 09:02