-
[ssh] (Solution) WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!Infra/linux 2019. 12. 13. 12:44
Environment: osx (Macbook pro)
ssh로 server에 connect시
Key or password 모두 accurate한데, below와 같은 message를 띄우며 connect이 failed 할 때가 있다.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:. Please contact your system administrator. Add correct host key in /var/root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /var/root/.ssh/known_hosts:226 ECDSA host key for DOMAIN has changed and you have requested strict checking. Host key verification failed.
Solution:
1. Open the '/var/root/.ssh/known_hosts' file.
2.Delete line.
3. Retry connect
'Infra > linux' 카테고리의 다른 글
nginx에 무료 ssl 자동 갱신 명령어 묶음 (feat. let's encrypt) (0) 2024.03.08 [linux] ssh - timeout 발생 방지 방법 (0) 2021.06.01 [linux] ubuntu(우분투)에 외장하드 마운트 연결 시키는 법 (0) 2021.01.15 [solution] npm install node gyp ERR! stack Error: `make` failed with exit code: 2 (0) 2020.02.05 [shell script] How to write password of sudo on one command line (0) 2019.11.14