警告:远程主机标识已更改!Chrome Secure Shell 应用扩展

Tom*_*mmy 3 ssh google-chrome

Loading NaCl plugin... done.
Connecting to user@172.27.0.31...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:C11asdfasdfxY6asdfasdfIUfadsfasdRB4.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /.ssh/known_hosts:21
ECDSA host key for 172.27.0.31 has changed and you have requested strict checking.
Host key verification failed.
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?
Run Code Online (Sandbox Code Playgroud)

此错误与 Chrome Secure Shell 应用扩展有关。

如果您受到中间人攻击或由于服务器端的证书更改,则可能会发生此错误。

之前的解决方法是使用 Chrome 控制台从已知主机中删除本地条目:

term_.command.removeKnownHostByIndex(21)
Run Code Online (Sandbox Code Playgroud)

但产生错误:

VM237:1 Uncaught TypeError: term_.command.removeKnownHostByIndex is not a function
    at <anonymous>:1:15 
Run Code Online (Sandbox Code Playgroud)

Tom*_*mmy 5

现在(我的 chrome 版本 85.0.4183.83(官方版本)(64 位))可以在扩展设置中手动删除条目。3 个点(chrome 右上角)> 更多工具 > 扩展 > Secure Shell 应用程序详细信息 > 扩展 > 选项 > SSH 文件 > 删除 ~/.ssh/known_hosts 中的特定条目(整行)

在此输入图像描述

在此输入图像描述

在此输入图像描述