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

3
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?

这个错误与Chrome Secure Shell App扩展相关。

如果您遭受中间人攻击或服务器端证书更改,可能会出现此错误。

以前修复此问题的方法是使用Chrome控制台从已知主机中删除本地条目:

term_.command.removeKnownHostByIndex(21)

但是会产生错误:

VM237:1 Uncaught TypeError: term_.command.removeKnownHostByIndex is not a function
    at <anonymous>:1:15 
3个回答

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

enter image description here

enter image description here

enter image description here


现在是3个点>扩展>管理扩展 - undefined

1

现在,应用程序已经不再推荐使用,而是推荐使用扩展。在终端的左上角,您可以点击图标,进入终端设置和SSH。

~/.ssh/known_hosts 在那里。

祝你好运!


0
现在看起来最简单的方法(在Windows上)是右键点击扩展图标,然后选择选项。上面的两个选项对我来说都不起作用。 截图

链接到解决方案是可以接受的,但请确保您的答案在没有链接的情况下仍然有用。添加链接周围的上下文,以便其他用户对其有一些了解,并解释为什么会有该链接,然后在目标页面不可用时引用链接页面的最相关部分。只包含链接的答案可能会被删除。Note: The translated text above is the translation of the provided English text. - LinFelix

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接