Programming

SSH 원격 접속 에러 : Host key verification failed.

byolee 2020. 6. 29. 12:48
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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

Please contact your system administrator.
Add correct host key in /Users/이름/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/이름/.ssh/known_hosts:7
ECDSA host key for IP 주소 has changed and you have requested strict checking.
Host key verification failed.
cd ~/.ssh
vi known_hosts​

위 warning에 뜬 IP 주소에 해당하는 부분을 삭제하면 된다!