清理Chrome Secure Shell扩展的known_hosts文件

Secure Shell是Chrome浏览器上面一个支持ssh管理的扩展,使用过程中如果你vps更换了系统,那么连接到时候会提示:

Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /.ssh/known_hosts:1
ECDSA host key for 167.160.189.78 has changed and you have requested strict checking.
Host key verification failed.
NaCl 插件已退出,状态代码为:255。
重新连接(R)、选择其他连接(C)或退出(E)

解决这个问题到方法就是在Secure Shell界面打开chrome到开发者工具,然后输入下面的代码回车,提示true就可以了。

term_.command.removeAllKnownHosts()

例如下面这个样子

init: hterm nassh_deps.concat.js:191
init: nassh nassh_deps.concat.js:191
init: gnubby probe nassh_main.js:39
您知道吗?我们提供了一个专用的选项页面。
您再也不必直接修改 term_ 了!
chrome-extension://iodihamcpbpeioajjeobimgagajmlibd/html/nassh_preferences_editor.html
plugin exit: 255 nassh.html#profile-id:50ce:1
NativeClient: NaCl module crashed
nassh_command_instance.js:950 loading plugin failed ProgressEvent
errorHandler @ nassh_command_instance.js:950
nassh_deps.concat.js:6333 No definition for key r (keyCode 229)
hterm.Keyboard.onKeyDown_ @ nassh_deps.concat.js:6333
nassh_command_instance.js:1164 plugin exit: 255
nassh_command_instance.js:1261 Attempt to write to unknown fd: 2
nassh.CommandInstance.onPlugin_.write @ nassh_command_instance.js:1261
nassh.html#profile-id:50ce:1 NativeClient: NaCl module crashed
nassh_command_instance.js:950 loading plugin failed ProgressEvent
errorHandler @ nassh_command_instance.js:950
term_.command.removeAllKnownHosts()
true