본문 바로가기

카테고리 없음

[Rocky9.1]ssh

2023.10.25

 

VM의 OS를 Rocky로 설치하고 Host인 Window에서 ssh로 접속하려고 했는데

C:\Users\user>ssh root@192.168.56.112
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:HygCcQXtiFhWkzT6SQCPwYI/G0GEyYSngtQDByl5LTg.
Please contact your system administrator.
Add correct host key in C:\\Users\\user/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\user/.ssh/known_hosts:22
ECDSA host key for 192.168.56.112 has changed and you have requested strict checking.
Host key verification failed.

다음과 같은 오류가 뜨는 것이다..!

 

 

해결책

1. (C:\Users\user/.ssh/known_hosts)에서 이전 호스트 키 항목을 제거하십시오. 이전 호스트 키를 제거하고,

 

ssh-keygen -R 192.168.56.112

을 사용하여 하였더니 성공!