본문 바로가기

Development/Debugging

[ssh] Host key verification failed.

가상머신 파일을 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 ECDSA key sent by the remote host is
SHA256:UbGBJued/owmRXI6ikT/O+m+SPjjaUFF4eDGjurB9tQ.
Please contact your system administrator.
Add correct host key in /home/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/.ssh/known_hosts:1
  remove with:
  ssh-keygen -f "/home/.ssh/known_hosts" -R "192.168.56.101"
ECDSA host key for 192.168.56.101 has changed and you have requested strict checking.
Host key verification failed.

기존에 설치되어있던 가상머신 중 동일한 ip를 사용하는 머신이 있어서 충돌이 난것이다.

vi /home/.ssh/known_hosts

해당 파일에서 키값을 삭제해주고 다시 ssh 연결을 하면 해결된다 😁

'Development > Debugging' 카테고리의 다른 글

[virtualbox] 호스트 네트워크 추가 오류  (0) 2020.08.07
[virtualbox] Implementation of the USB 2.0 controller not found  (0) 2020.07.19
mysql-server 완전삭제  (1) 2020.04.17
syntax error : bcrypt  (0) 2020.04.13
NameError  (0) 2020.04.02