SSH RSA 공유키 충돌 문제 해결
문제
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:asdfzxcvjkzxlcvjklqjlkerjalksdjfklzjcxvlkcx.
Please contact your system administrator.
Add correct host key in /Users/XXXX/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/XXXX/.ssh/known_hosts:6
ECDSA host key for 123.123.123.123 has changed and you have requested strict checking.
Host key verification failed.
해결 방법
XXXXui-MacBook-Pro:Desktop XXXX$ ssh-keygen -R 123.123.123.123
위의 명령어에서 IP 주소는 접속하고자 하는 IP로 변경함.
하고 나면 잘됨.