Wednesday, 12 February 2014

Chrome Secure Shell App Remove All SSH Hosts

Secure Shell uses strict checking, and if the signature of your host has changed, you will not be able to connect  while receiving this error message:

Welcome to Secure Shell version 0.8.25.
Answers to Frequently Asked Questions: http://goo.gl/TK7876
Verbindung mit vkononov@206.45.90.140, Port ?? wird hergestellt...
Loading NaCl plugin... done.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
76:d5:55:de:65:0d:75:29:2a:7b:0d:fe:46:51:4d:4d.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending RSA key in /.ssh/known_hosts:1
RSA host key for 206.45.90.140 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?

The easiest thing to do in this situation is to delete all hosts for Secure Shell.
  1. Open up Secure Shell
  2. Start the Javascript console
  3. Enter this command in the console:
term_.command.removeDirectory('/.ssh/')

You should receive a confirmation "Removed: /.ssh/:"

WARNING: If working on Chrome OS, removing hosts for the OS terminal will have no effect on Secure Shell, as they both use their own respective hosts file.

No comments:

Post a comment