Linux/Trouble Shooting
[Linux] 에러해결: Host key for [192.168.219.104]:5000 has changed and you have requested strict checking.Host key verification failed. (SSH 키 에러)
2023. 3. 28. 23:48반응형
문제/에러
# ssh -p 5000 kai@192.168.219.104 255 ⨯ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ED25519 key sent by the remote host is SHA256:C0zEJLCgw1mfz/6hB6PpyTbugfcfESkA1lQMi3VELJk. Please contact your system administrator. Add correct host key in /home/gildong/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/gildong/.ssh/known_hosts:6 remove with: ssh-keygen -f "/home/gildong/.ssh/known_hosts" -R "[192.168.219.104]:5000" Host key for [192.168.219.104]:5000 has changed and you have requested strict checking. Host key verification failed. |
원인
이 로그 보면, host 키가 변경이 되어버린 가능성이 있어서 접근이 안되는 거 였다.
It is also possible that a host key has just been changed.
해결방안
기존 host 키를 지워준다.
rm -rf /home/glidong/.ssh/known_hosts를 지워주고 다시 ssh 연결을 시도한다.
시간을 절약했으면 아래의 하트
반응형