WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!, SSH


Overcome the warning error when ssh to a machine, this problem occurs because the host and the IP used are already registered in the remote SSH file. To be able to SSH or login with the same HOSTNAME and IP then the registered HOST must be deleted first. And this is done to overcome the error.

heriipurnama@tesla  ~  
╰─$ ssh marconi@192.168.56.102                
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:Ixa/cZ8vOfJ0Ep8sViAndUWL8PoUBmT3zQZIxkfGoP8.
Please contact your system administrator.
Add correct host key in /home/heriipurnama/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/heriipurnama/.ssh/known_hosts:3
ECDSA host key for 192.168.56.102 has changed and you have requested strict checking.
Host key verification failed.
=======
This is the method used to set ssh so that there can be two ways to use IP and HOSTNAME
ssh-keygen -R [hostname]
ssh-keygen -R [IP]




 ─heriipurnama@tesla  ~  
╰─$ ssh-keygen -R marconi                           255 ↵
Host marconi not found in /home/heriipurnama/.ssh/known_hosts
╭─heriipurnama@tesla  ~  
╰─$ ssh-keygen -R 192.168.56.102
# Host 192.168.56.102 found: line 3
/home/heriipurnama/.ssh/known_hosts updated.
Original contents retained as /home/heriipurnama/.ssh/known_hosts.old
    Blogger Comment
    Facebook Comment

0 komentar:

Post a comment

Thanks For Your Feedback.