当前位置:首页 - Linux

cenos sftp 报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

作者:高景洋 日期:2021-05-10 14:42:47 浏览次数:1346

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>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 100.28.227.63 X-Real-Ip: 100.28.227.63 X-Domain: r4.com.cn X-Request: GET /art183.aspx HTTP/1.1 X-Request-Uri: /art183.aspx Connection: close User-Agent: CCBot/2.0 (https://commoncrawl.org/faq/) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 If-Modified-Since: Thu, 01 Jun 2023 08:30:22 GMT Accept-Encoding: br,gzip