-
[이슈]REMOTE HOST IDENTIFICATION HAS CHANGED!인프라/linux 2024. 1. 5. 19:56
가상 머신을 다시 생성하고 호스트에서 ssh로 접속하려고 했을 때 발생한 이슈 입니다.
자주 만날 것 같아서 메모를 해두겠습니다.
known_hosts 라는 파일에 이전 key가 남아있는 것이 문제입니다.
$ nano ~/.ssh/known_hosts
파일을 열어보면 현재 접근하려고하는 ip 이전에 생성된 fingerprint key 들이 있습니다.
모두 제거하고 다시 연결하면 문제가 없이 작동합니다.
[참고]
한 줄 모두 삭제는 Ctrl + K
'인프라 > linux' 카테고리의 다른 글
자주 사용하는 리눅스 명령어 정리 (0) 2024.04.18 RHEL에서 port에 실행 중인 프로세스 확인하기 (0) 2024.04.12 scp - secured copy protocol (0) 2024.03.22 Linux에서 사용자에 따른 환경변수 설정 (0) 2024.03.17 EC2 RHEL 9.3에서 htop 설치하기 (0) 2024.02.15