Hello guys, You may facing this issue while connecting through SSH. Let’s see how to fix this issue.
PS C:\Users\Techusers> ssh user@<IP ADDRESS>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:ZRR4ZsDR0plObwR9mIErN35O5EjXUYFGKJHVsfjcec.
Please contact your system administrator.
Add correct host key in C:\\Users\\Techusers/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\Techusers/.ssh/known_hosts:4
ECDSA host key for <IP ADDRESS> has changed and you have requested strict checking.
Host key verification failed.
This is actually a warning given by your Operating System. Someone may eavesdropping on you and it is also called as man-in-the-middle attack. Your computer warning this IP may be like that. You need to add the Remote IP as the known hosts to your computer. Follow the below steps to add Host IP as a trusted one to you PC.
Here is the solution for “SSH Remote host identification has changes”
Solution:
PS C:\Users\Techusers> ssh-keygen -R "Your IP or Host IP"
Result:
You will get the below result “C:\Users\Techusers/.ssh/known_hosts updated”.
PS C:\Users\Techusers> ssh-keygen -R "10.10.0.30"
# Host 10.10.0.30 found: line 4
C:\Users\Techusers/.ssh/known_hosts updated.
Original contents retained as C:\Users\Techusers/.ssh/known_hosts.old
Follow our blog to get more solutions related to WordPress development, Linux and much more. Thanks for Reading!!!