시스템

REMOTE HOST IDENTIFICATION HAS CHANGED!

@developer.kye 2023. 8. 1. 09:33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
-생략-
Please contact your system administrator.
Add correct host key in /home/warren/.ssh/known_hosts to get rid of this message.
Offending key in /home/warren/.ssh/known_hosts:1
RSA host key for -생략(ip)- has changed and you have requested strict checking.
Host key verification failed.

서버를 다른 디바이스로 바꾼다던가 하는 이유로 위 에러가 날 수 있다.

이럴 때는 다음과 같이 다시 keygen을 생성해주면 된다.

ssh-keygen -R [ IP or DomainName]

ex) ssh-keygen -R XXX.XXX.XXX.XXX