cenos sftp 报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
CentOS sftp 连接 报如下错误
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:3Z3CV6I11tZbg4wGfKFxbms4W0oKWAFxis+jl+OEh2Q.
Please contact your system administrator.
Add correct host key in /Users/jasongao/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/jasongao/.ssh/known_hosts:8
ECDSA host key for 10.10.10.10 has changed and you have requested strict checking.
Host key verification failed.
Connection closed.
Connection closed
解决方法:
执行: vi ~/.ssh/known_hosts
将你要远程连接对应的那一行删掉,然后 重新进行 sftp 连接,即可登陆。
<a href="http://r4.com.cn/art183.aspx">cenos sftp 报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!</a>