{"id":563,"date":"2022-12-29T07:42:45","date_gmt":"2022-12-29T12:42:45","guid":{"rendered":"https:\/\/muthii.com\/blog\/?p=563"},"modified":"2022-12-29T07:47:51","modified_gmt":"2022-12-29T12:47:51","slug":"chomebook-secure-shell-remove-ssh-key-from-known_hosts","status":"publish","type":"post","link":"https:\/\/muthii.com\/blog\/?p=563","title":{"rendered":"Chomebook Secure Shell &#8211; Remove ssh key from known_hosts"},"content":{"rendered":"\n<p>One problem with  the Secure Shell plugin is when you need to remove an ssh key from the known_hosts file there is no direct access to the file from the file system. This issue comes up normally when you run into the error message below.<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br>@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @<br>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br>IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br>Someone could be eavesdropping on you right now (man-in-the-middle attack)!<br>It is also possible that a host key has just been changed.<br>The fingerprint for the ED25519 key sent by the remote host is<br>SHA256:C\/\/eoM00fEk4Z8YH6bAp7NdGyhqm24Xsmj\/wDl81TEc.<br>Please contact your system administrator.<br>Add correct host key in \/.ssh\/known_hosts to get rid of this message.<br>Offending ED25519 key in \/.ssh\/known_hosts:9<br>Host key for xx.xx.xx.xx has changed and you have requested strict checking.<br>Host key verification failed.<\/pre>\n\n\n\n<p>Which will come up when you re-image an existing host or replace an existing host with another host using the same IP address\/host name. The previous way of doing this used to be do (CTRL + SHIFT + J) to bring up the terminal and then run the command &#8220;term_.command.removeKnownHostByIndex(INDEX); &#8221; but this doesn&#8217;t always work for me as &#8220;command&#8221; isn&#8217;t always available. The most consistent way I have found to resolve this is to bring up Secure Shell and choose Options -&gt; SSH Files you will see your known_hosts file with the ability to modify and save it. Remember to save after your changes and you should be good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One problem with the Secure Shell plugin is when you need to remove an ssh key from the known_hosts file there is no direct access to the file from the file system. This issue comes up normally when you run into the error message below. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/muthii.com\/blog\/?p=563\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Chomebook Secure Shell &#8211; Remove ssh key from known_hosts&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,46],"tags":[],"_links":{"self":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/563"}],"collection":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=563"}],"version-history":[{"count":2,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/563\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}