Development/Linux
SSH - Host key verification failed
qWooWp
2021. 3. 9. 17:14
반응형
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:oan1MKZ176qOX7ybE8Oci6qRZ7DxuKCBHq02vN/En/o.
Please contact your system administrator.
Add correct host key in /home/joon/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/joon/.ssh/known_hosts:3
remove with:
ssh-keygen -f "/home/joon/.ssh/known_hosts" -R "192.168.8.5"
RSA host key for 192.168.8.5 has changed and you have requested strict checking.
Host key verification failed.
위와 같이 오류가 날 경우
아래의 단계를 거쳐서 복구가 가능하다.
$ ssh-keygen -R 192.168.8.5
$ ssh root@192.168.8.5
The authenticity of host '192.168.8.5 (192.168.8.5)' can't be established.
RSA key fingerprint is SHA256:oan1MKZ176qOX7ybE8Oci6qRZ7DxuKCBHq02vN/En/o.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.8.5' (RSA) to the list of known hosts.
root@192.168.8.5's password: 패스워드 입력
반응형