Error Event/VM

[SSH] ECDSA key Error SSH접속 실패

Richard.Ryu 2024. 6. 14. 14:17
반응형
[root@master ~]# ssh 192.168.0.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
ECDSA host key for 192.168.0.11 has changed and you have requested strict checking.
Host key verification failed.

 

VM ssh 접속하려는데, 갑자기 Warning 발생해서 확인하니, ssh key Error가 발생했습니다.

 

ssh-keygen -R "IP주소"  or "domain" 로 제거 후, 다시 키 생성 및 접속.

[root@master ~]# ssh-keygen -R 192.168.0.11
# Host 192.168.0.11 found: line 1
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old

 

 

반응형