WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! Chrome Secure Shell App extension

Viewed 1407
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?

This error is related to Chrome Secure Shell App extension.

This error may happen if you are under man in the middle attack or due to certificate change on the server side.

Previous fix to this was to delete local entry from known hosts by using Chrome console:

term_.command.removeKnownHostByIndex(21)

But produces error:

VM237:1 Uncaught TypeError: term_.command.removeKnownHostByIndex is not a function
    at <anonymous>:1:15 
2 Answers

Now (my chrome Version 85.0.4183.83 (Official Build) (64-bit)) an entry can be deleted manually in extension settings. 3 dots (chrome right upper corner) > More tools > Extensions > Secure Shell App Details > Extensions > options > SSH Files > Delete specific entry (whole row) in ~/.ssh/known_hosts

enter image description here

enter image description here

enter image description here

now that the app is discouraged in favour of the extension, in the top-left corner of the terminal you may click the icon, and delve into terminal settings and SSH.

~/.ssh/known_hosts is there.

good luck!

Related