본문 바로가기
Linux

[Linux] SSH 접속 시 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 경고 해결

by spareone 2026. 3. 20.

가끔 SSH 접속 시 아래와 같은 메시지를 볼 때가 있습니다.

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:
Please contact your system administrator.
Add correct host key in /Users/user/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/user/.ssh/known_hosts:88
Host key for [대상IP] has changed and you have requested strict checking.
Host key verification failed.
Connection closed by UNKNOWN port

 

기존 SSH key 정보를 사용할 수 없을 때 위 에러가 발생합니다.

주로 서버IP는 동일하나 서버 내부(OS 등)가 변경되었을 때 발생합니다.

 

 

 

아래의 명령어로 SSH key를 새로 만들어주면 됩니다.

ssh-keygen -R [대상IP]

댓글