scp 명령 사용 시 Host key verification 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:yYd6duV8JxymhTvgTBLGtTT5N+rFY08L2k1HTU2zDOY.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
ECDSA host key for 192.168.1.146 has changed and you have requested strict checking.
Host key verification failed.
위와같은 에러는 현재 접속되어있는 시스템의 .ssh의 디렉토리의 known_hosts에서 접속 대상지의 정보가 꼬였기 때문에 발생되는 문제로 다음과 같이 해결
# cd
# cd .ssh
# vi known_hosts
접속하고자 하는 대상지의 hostname 또는 IP의 정보라인을 삭제 후 재시도