반응형
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:1234567890abcdefghijklmnopqrstuvwxyz.
Please contact your system administrator.
Add correct host key in /Users/user/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/user/.ssh/known_hosts:1
Host key for aaa.bbb.com has changed and you have requested strict checking.
Host key verification failed.
오늘 항상 들어가던 서버에 접속하려고하니 위와 같은 오류가 발생하였습니다😯
내용을 보면 aaa.bbb.com의 호스트 키가 변경되어 호스트 키 확인에 실패했고, /Users/user/.ssh/known_hosts:1의 잘못된 RSA 키를 수정하여 이 메시지를 제거할 수 있다고 나와있습니다.
아래와 같이 known_hosts 파일의 내용을 확인해보면
cat /Users/user/.ssh/known_hosts
아래와 같이 해당 도메인에 대한 RSA 키 정보가 들어있는데 이 부분을 지워준 후 저장해 줍니다.
aaa.bbb.com,123.456.789.0 ssh-rsa AAAAABBBBBCCCCCDDDDDEEEEE11111222223333344444555556666677777888889999900000
그리고 다시 접속하면 연결에 성공하게 됩니다🎉
+ 참고
다시 접근할 때 아래와 같이 핑거 프린트를 다시 남기는데, 아마도 이 때 known_hosts 파일에 RSA 키 정보를 다시 저장해주는 듯합니다. 접속 후 known_hosts 파일을 다시 열어보면 맨 마지막에 다시 해당 도메인에 대한 RSA 키 정보가 들어있다.
The authenticity of host 'aaa.bbb.com (123.456.789.0)' can't be established.
ED25519 key fingerprint is SHA256:ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'aaa.bbb.com' (ED25519) to the list of known hosts.
반응형
'Linux' 카테고리의 다른 글
[setcap/getcap] Linux에서 1024 이하 포트 사용하기 (0) | 2023.10.27 |
---|---|
[Tmux] MacOS에서 Tmux 설치 및 사용하기 (0) | 2022.03.07 |
[Linux] Nginx 설치하기, 버전 확인하기 (0) | 2021.11.05 |
[Linux] pm2 설치하기 (0) | 2021.11.05 |
[Linux] nvm을 이용하여 node 설치 확인하기 (0) | 2021.11.05 |