TIPS: chrome上のSSHでRSA keyが変わって入れなくなった時の対処法
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Please contact your system administrator.
Add correct host key in /.ssh/known_host to get rid of this message.
RSA host key for XXX.XXX.XXX.XXX has changed and you have requested strict checking.
Host key verification failed.
最近は、VMware ESXiでは、Web Clientからほとんどアクセスしているが、
私のようにESXiをごにょごにょしている人は、上記のようなエラーに遭遇する。
ブラウザ上でSSHを使ってESXiにログインしているのだが、
不一致でログイン不能に陥る。
備忘のためにその解除法を記しておく。
「メニュー>その他のツール>デベロッパーツール」を起動。
そして、Consoleタブを選択し、コンソールで以下の1行を実行する。
term_.command.removeAllKnownHosts()
結果として、
> true
と表示されればすべてのキーが初期化され、
再びSSHを起動すれば、
Are you sure you want to continue connecting (yes/no) ?
と新しいキーを受け付けて接続するかどうか聞かれるようになる。
以上