@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 RSA key sent by the remote host is 7a:1a:88:........(생략) Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending RSA key in /root/.ssh/known_hosts:12 RSA host key for 192.168.0.2 has changed and you have requested strict checking. Host key verification failed. |
내용은 원격 호스트 식별 정보가 변경되었다.
기존에 등록되어있던 RSA key가 다르다.
누군가 기존 접속 정보를 바꾸어 정보를 가로채는 man-in-the-middle attack 에 발생에 유의해라.
해당 경고를 제거하려면 /root/.ssh/known_hosts 올바른 Host Key를 추가해라.
방법 1. [root@host~]# ssh-keygen -R 192.168.0.2(대상 서버 IP)
간단하게 ssh-keygen -R [서버IP] 명령어를 통해 known_hosts 의 내용을 갱신 해주는 방법이 있다.
방법 2. [root@host~]# rm /root/.ssh/known_hosts
known_hosts 파일을 지우기. 해당 파일은 지워져도 다시 ssh 접속 할 떄 해당 파일이 생성된다.
혹시나 불안하다면 [root@host~]# mv /root/.ssh/known_hosts /root/.ssh/known_hosts.temp
와 같이 백업을 해두는것도 방법이다.
방법 3. [root@host~]# vi /root/.ssh/known_hosts
vi 편집기를 통해 해당 대상 아이피로 이동하여 dd 눌러서 행을 삭제해준다.
페이지상 길게 나와서 그렇지 IP당 1개의 행으로 길게 적혀있다.
IP주소 위에서 dd하면 등록된 RSA key 만 삭제 된다. wq 저장은 필수.
Are you sure you want to continue connecting (yes/no)? 메시지가 나오면 그냥 yes해주면 넘어간다
textarea 입력한 한/영 byte 자르기 (0) | 2021.11.19 |
---|---|
Linux passwd 변경 (0) | 2021.11.03 |
[PHP] 정규식 preg_match (0) | 2021.09.24 |
[PHP] session_start() (0) | 2021.09.23 |
EditPlus VMware FTP 연결 (0) | 2021.08.30 |
댓글 영역