使用win10 sftp 连接服务器报错 t is also possible that a host key has just been changed. The fingerprint for t

前言

刚升级完服务器的ssh版本, 升级完成后使用win10通过sftp上传文件时连接不上。

错误信息

使用win10 sftp 连接服务器报错 t is also possible that a host key has just been changed. The fingerprint for t_第1张图片

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:FFy9nKtluG6//igg1ph3qGMPaaUZg63pfUprkdz5crY.
Please contact your system administrator.
Add correct host key in C:\\Users\\86180/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\86180/.ssh/known_hosts:7
ECDSA host key for 192.168.244.129 has changed and you have requested strict checking.
Host key verification failed.
Connection closed

原因

远程服务器ssh的公私秘钥更换了。本地维护的是之前远程服务器的公钥。

解决

删除本地用户目录的 known_hosts 文件重新连接既可。

使用win10 sftp 连接服务器报错 t is also possible that a host key has just been changed. The fingerprint for t_第2张图片

你可能感兴趣的:(error)