티스토리 뷰

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
Please contact your system administrator.
Add correct host key in /home/ubuntu/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/ubuntu/.ssh/known_hosts:2
  remove with:
  ssh-keygen -f "/home/ubuntu/.ssh/known_hosts" -R "x.xx.xx.xxx"
ECDSA host key for x.xx.xx.xxx has changed and you have requested strict checking.
Host key verification failed.

한 서버에서 다른 서버로 SSH 접속을 하려 하니 위 에러가 발생했다.

 

 

해결 방법

$ ssh-keygen -R 접속할서버IP

 

 

다시 접속 시도해보면 잘 된다.

반응형

댓글