问题描述
在使用SCP或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 ECDSA key sent by the remote host is
SHA256:uEFlOVGUfIbe3b0KnztoiiJW/ytHLJtcqTkvIKCtoFw.
Please contact your system administrator.
Add correct host key in /data1/xiangbogui/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /data1/xiangbogui/.ssh/known_hosts:3
ECDSA host key for [10.66.11.65]:22 has changed and you have requested strict checking.
Host key verification failed.
lost connection
原因
进行远程连接时,在输入yes后,本机会将远程机器的信息,写到/data1/xiangbogui/.ssh/known_hosts文件中。
本机之前连接过10.66.11.65,由于更改了密码,需要将/data1/xiangbogui/.ssh/known_hosts文件中此ip的信息删除。
再次连接,可正常连接。