问题描述
在尝试使用ssh或者scp 命令通过 SSH 连接到远程主机(192.168.x.x)时,出现了以下错误信息:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:hS0Ct3KXgnDZF4DFK1xNOqfTIevoLOGuU9V8P14/K/I.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:8
ECDSA host key for 192.168.x.x has changed and you have requested strict checking.
Host key verification failed.
lost connection
这个错误的原因是尝试建立的 SSH 连接由于密钥不匹配而失败。
问题可能原因
-
远程主机的 SSH 密钥已

本文讲述了在尝试通过SSH或scp连接远程主机时遇到密钥不匹配错误的情况,分析了可能是远程主机SSH密钥更新或中间人攻击。提供了解决方案,包括移除旧密钥并接受新密钥以恢复连接,同时强调在操作前确认远程主机的安全性。
&spm=1001.2101.3001.5002&articleId=134840918&d=1&t=3&u=9fdff47d444b4f1b83a60ccf2a6b7fb7)
3687

被折叠的 条评论
为什么被折叠?



