{"id":235,"date":"2020-04-20T23:55:00","date_gmt":"2020-04-20T23:55:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=235"},"modified":"2024-02-08T08:13:09","modified_gmt":"2024-02-08T13:13:09","slug":"ssh-warning-remote-host-identification-has-changed","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/ssh-warning-remote-host-identification-has-changed\/","title":{"rendered":"SSH &#8211; Warning: remote host identification has changed"},"content":{"rendered":"\n<p>When using ssh, if you get the following message, do not panic. Chances are nothing nasty has happened.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\nIT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\nSomeone could be eavesdropping on you right now (man-in-the-middle attack)!\nIt is also possible that the RSA host key has just been changed.\nThe fingerprint for the RSA key sent by the remote host is\ne2:7c:58:33:c5:c7:ce:75:a9:55:1a:ef:ef:d7:4b:fe.\nPlease contact your system administrator.\nAdd correct host key in \/home\/someone\/.ssh\/known_hosts to get rid of this message.\nOffending key in \/home\/someone\/.ssh\/known_hosts:1\nRSA host key for www.somesite.com has changed and you have requested strict checking.\nHost key verification failed.<\/code><\/pre>\n\n\n\n<p>This means that the public key of the host has changed and the key stored in your cache is no longer valid. Simply do the following;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vi  .ssh\/known_hosts<\/code><\/pre>\n\n\n\n<p>Inside this file, remove the line which refers to the host, e.g. somesite.com. Save the file and start ssh again. That&#8217;s it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using ssh, if you get the following message, do not panic. Chances are nothing nasty has happened. This means that the public key of the host has changed and the key stored in your cache is no longer valid. Simply do the following; Inside this file, remove the line which refers to the host, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[512],"tags":[36],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-misc","tag-ssh"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":236,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/235\/revisions\/236"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}