Remote Host Identification Has Changed – BLT Sync and SSH Error
Many times when you try to set up your local environment from scratch you might face this issue. This is originally SSH-error which shows “REMOTE HOST IDENTIFICATION HAS CHANGED”.
The external command could not be executed due to an application error. The command could not be successfully (returned: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Please contact your system administrator. Add correct host key in /Users/debdattasarkar/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/debdattasarkar/.ssh/known_hosts:7 ECDSA host key for local.xxxxxxx.com has changed and you have requested strict checking. Host key verification failed. , code: 255) Error: no database record could be found for target @xxxxxxx.local
To resolve this issue you will just need to do these following steps.
~/.ssh/known_hosts is where the host keys are stored. A sample entry of the file is as the following.
ssh-keygen -R host

Debdatta has more than 13 years in IT induustry and software engineering. Currently 6 years in data science, and machine learning. She holds a Master of Computer Applications degree and Executive Post Graduate Program Degree in Data Science. She is passionate about research, data-driven decisions, and technology’s role in business growth.