{"id":4561,"date":"2019-11-14T14:10:26","date_gmt":"2019-11-14T06:10:26","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=4561"},"modified":"2019-11-14T14:10:26","modified_gmt":"2019-11-14T06:10:26","slug":"%e4%bf%ae%e5%a4%8d-ssh-%e7%99%bb%e5%bd%95%e6%8f%90%e7%a4%bahost-key-verification-failed%ef%bc%8cwarning-remote-host-identification-has-changed%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4561","title":{"rendered":"\u4fee\u590d SSH \u767b\u5f55\u63d0\u793a\u201cHost key verification failed\u201d\uff0c\u201cWARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\u201d\u95ee\u9898"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5e73\u65f6\u4e60\u60ef\u4e86\u624b\u52a8\u8f93\u5165 ssh xttblog@ip \u53bb\u767b\u5f55\u670d\u52a1\u5668\uff0c\u4f46\u662f\u5728\u4eca\u5929\u767b\u5f55\u67d0\u4e00\u53f0\u670d\u52a1\u5668\u65f6\u62a5\u4e86\u9519\u3002\u63d0\u793a\u6211\u4eec\u201cHost key verification failed.\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u6574\u9519\u8bef\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ssh root@ip\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\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 a host key has just been changed.\nThe fingerprint for the ECDSA key sent by the remote host is\nSHA256:HDjXJvu0VYXWF+SKMZjSGn4FQmg\/+w6eV9ljJvIXpx0.\nPlease contact your system administrator.\nAdd correct host key in \/Users\/xttblog\/.ssh\/known_hosts to get rid of this message.\nOffending ECDSA key in \/Users\/xttblog\/.ssh\/known_hosts:46\nECDSA host key for ip has changed and you have requested strict checking.\nHost key verification failed.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636e\u8fd9\u4e2a\u9519\u8bef\u63d0\u793a\uff0c\u5927\u6982\u610f\u601d\u662f\u8bf4\uff0c\u6211\u7684 ECDSA \u4e3b\u673a\u5bc6\u94a5\u5df2\u66f4\u6539\uff0c\u5bfc\u81f4\u4e86\u6211\u7684\u4e3b\u673a\u5bc6\u94a5\u9a8c\u8bc1\u5931\u8d25\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u90a3\u4e48\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528 ssh-keygen \u6765\u751f\u6210\u3001\u7ba1\u7406\u548c\u8f6c\u6362\u8ba4\u8bc1\u5bc6\u94a5\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen -R \u4f60\u7684\u670d\u52a1\u5668IP\u5730\u5740<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ea\u9700\u8981\u4e0a\u9762\u4e00\u4e2a\u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u89e3\u51b3 SSH \u767b\u5f55\u7684\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/20190102205456319.jpg\" alt=\"\" \/><figcaption>\u89e3\u51b3 Host key verification failed<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">ssh-keygen \u7684\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u4e0b\u9762\u7ed9\u5927\u5bb6\u5217\u4e3e\u4e0d\u53d1 ssh-keygen \u7684\u53c2\u6570\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment] [-f output_keyfile]<br>ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]<br>ssh-keygen -i [-f input_keyfile]<br>ssh-keygen -e [-f input_keyfile]<br>ssh-keygen -y [-f input_keyfile]<br>ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]<br>ssh-keygen -l [-f input_keyfile]<br>ssh-keygen -B [-f input_keyfile]<br>ssh-keygen -D reader<br>ssh-keygen -F hostname [-f known_hosts_file]<br>ssh-keygen -H [-f known_hosts_file]<br>ssh-keygen -R hostname [-f known_hosts_file]<br>ssh-keygen -U reader [-f input_keyfile]<br>ssh-keygen -r hostname [-f input_keyfile] [-g]<br>ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]<br>ssh-keygen -T output_file -f input_file [-v] [-a num_trials] [-W generator]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ssh-keygen \u7a0b\u5e8f\u662f\u7528\u6765\u521b\u5efa\uff0c\u7ba1\u7406\u548c\u8f6c\u6362\u5bc6\u94a5\u7684\u5de5\u5177\uff0c\u5b83\u652f\u6301\u7684\u5bc6\u94a5\u7c7b\u578b\u6709\u201cRSA\uff0cDSA\uff0cECDSA\uff0cED25519\uff0cRSA1\u201d\u3002\u529f\u80fd\u975e\u5e38\u7684\u5f3a\u5927\uff0c\u5927\u5bb6\u53ef\u4ee5\u901a\u8fc7 man ssh-keygen \u547d\u4ee4\u6765\u67e5\u770b\u5b83\u7684\u5e2e\u52a9\u548c\u7ec3\u4e60\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=4561\">\u4fee\u590d SSH \u767b\u5f55\u63d0\u793a\u201cHost key verification failed\u201d\uff0c\u201cWARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\u201d\u95ee\u9898<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5e73\u65f6\u4e60\u60ef\u4e86\u624b\u52a8\u8f93\u5165 ssh xttblog@ip \u53bb\u767b\u5f55\u670d\u52a1\u5668\uff0c\u4f46\u662f\u5728\u4eca\u5929\u767b\u5f55\u67d0\u4e00\u53f0\u670d\u52a1\u5668\u65f6\u62a5\u4e86\u9519\u3002\u63d0\u793a\u6211\u4eec\u201c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1527,706,1394,1667,2030],"class_list":["post-4561","post","type-post","status-publish","format-standard","hentry","category-yyzt","tag-keytool","tag-linux","tag-ssh","tag-ssh-keygen"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4561"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4561\/revisions"}],"predecessor-version":[{"id":4562,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4561\/revisions\/4562"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}