'The fingerprint for the RSA key sent by the remote host is'에 해당되는 글 1건

  1. 2021.06.17 SSH 접속시 RSA 공유키 충돌 문제 해결
2021. 6. 17. 19:45

 

맥에서 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 RSA key sent by the remote host is
SHA256:H.
Please contact your system administrator.
Add correct host key in /Users/ty/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/ty/.ssh/known_hosts:3
RSA host key for 192.168.0.123 has changed and you have requested strict checking.
Host key verification failed.

 

서버를 포멧하고 재 설치를했더니, 맥에서 저장된 키값이 틀려서 그런거다..

그래서 키값을 삭제해 줘야한다.

 

> ssh-keygen -R [아이피주소]

이걸 실행하면 리셋이 된다.

ssh-keygen -R 192.168.0.123

 

 

 

Posted by Tyson