본문 바로가기
Error

"Could not establish connection to "[server_name]": Remote host key has changed, port forwarding is disabled."

by reo.l 2021. 6. 3.

ssh 접속시 로컬의 .ssh의 known_hosts파일에 footprint를 저장한다. 그러나 서버의 포트나 ip 변경시 known_hosts에 저장하여둔 정보와 충돌이 발생하여 생기는 에러이다. 

 

/.ssh/known_hosts

#ec2-0-0-0-0.ap-northeast-2.compute.amazonaws.com,0.0.0.0 
파일에 들어가서 서버와 관련된 라인을 삭제한다.

 

댓글