当前位置:首页 - Linux

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

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

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: 13.59.217.1 X-Real-Ip: 13.59.217.1 X-Domain: r4.com.cn X-Request: GET /art183.aspx HTTP/1.1 X-Request-Uri: /art183.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Accept-Encoding: gzip, br, zstd, deflate