WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

REMOTE HOST IDENTIFICATION HAS CHANGED!
Host key verification failed.

1 문제 상황[ | ]

  • SSH 접속을 하려는데 다음과 같은 메시지가 나오면서 안된다.
[root@CentOS6 ~]# ssh 135.79.246.80
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
b3:73:e5:0f:b8:31:35:40:04:9a:c1:3e:ec:80:d3:6e.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:2260
RSA host key for 135.79.246.80 has changed and you have requested strict checking.
Host key verification failed.
  • 원인: 서버 교체 등으로 대상 원격서버의 Key가 바뀜
해당 서버의 IP를 다른 서버에 준 경우

2 조치방법[ | ]

ssh-keygen -R 135.79.246.80
[root@CentOS6 ~]# ssh-keygen -R 135.79.246.80
# Host 135.79.246.80 found: line 8 type ECDSA
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
[root@CentOS6 ~]# ssh 135.79.246.80
root@135.79.246.80's password:

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}