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 ----- key sent by the remote host is
SHA256:------------------------.
Please contact your system administrator.
Add correct host key in /Users/tester/.ssh/known_hosts to get rid of this message.
Offending ----- key in /Users/tester/.ssh/known_hosts:188
Host key for xxxxxxx has changed and you have requested strict checking.
Host key verification failed.
위 내용을 보면 Add correct host key in /Users/tester/.ssh/known_hosts라고 나오는데
/Users/tester/.ssh/known_hosts의 정보를 수정해주면 된다.
해결방법
vi /Users/tester/.ssh/known_hosts 로 해당 파일에 접근해서 접근하고자 하는 서버의 값을 지워주고 저장
이후 다시 원격 서버에 접속을 시도하면 정상적으로 되는 것을 볼 수 있다.
문제가 발생한 원인은 원격 호스트 식별 정보가 변경 되었기 때문
스케줄러 crontab (0) | 2022.01.12 |
---|---|
CURL(Client URL) (0) | 2021.09.02 |
오라클 설치 및 설정 (0) | 2021.04.05 |
x window (0) | 2021.04.02 |
host 명령어 (0) | 2021.04.01 |