{"id":588,"date":"2023-09-18T20:43:14","date_gmt":"2023-09-18T12:43:14","guid":{"rendered":"http:\/\/madapapa.com\/wordpress\/?p=588"},"modified":"2023-10-08T17:27:35","modified_gmt":"2023-10-08T09:27:35","slug":"jie-jue-tiao-ban-ji-wen-ti","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=588","title":{"rendered":"\u89e3\u51b3\u8df3\u677f\u673a\u95ee\u9898"},"content":{"rendered":"<p>\u516c\u53f8\u7684IDC\uff0c\u9700\u8981\u901a\u8fc7\u5821\u5792\u673a\u767b\u5f55\uff0c\u6709\u4e24\u79cd\u65b9\u5f0f<\/p>\n<ol>\n<li>\u4f7f\u7528web shell\uff0c\u8fd9\u4e2a\u975e\u5e38\u7b80\u5355\uff0c\u5728\u516c\u53f8\u7684opencloud\u9875\u9762\u4e0a\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u800c\u4e14\u7701\u53bb\u4e86\u8f93\u5165ssh\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/li>\n<li>\u4f7f\u7528ssh\u7ec8\u7aef\uff0c\u603b\u662f\u5931\u8d25\uff0c\u8bf7\u6559\u4e86\u8fd0\u7ef4\u540c\u4e8b\uff0c\u4ed6\u4e5f\u4e0d\u6e05\u695a\uff0c\u8fd8\u597d\u6709chatgpt\u7684\u795e\u52a9\u653b\uff0c\u753b\u4e861\u5c0f\u65f6\u89e3\u51b3\u4e86\u3002<\/li>\n<\/ol>\n<p>\u5931\u8d25\u4fe1\u606f<\/p>\n<pre><code class=\"language-plain_text\">on my mac :# ssh username@jump.server.com\nUnable to negotiate with X.X.X.X port 22: no matching host key type found. Their offer: ssh-rsa\n<\/code><\/pre>\n<p>chat gpt\u7ed9\u51fa\u7684\u5efa\u8bae<\/p>\n<blockquote>\n<p>It appears that you&#8217;re trying to SSH from your Mac to the server at jump.server.com, and you&#8217;re encountering the &quot;no matching host key type found&quot; error with an offer of &quot;ssh-rsa.&quot; This error typically occurs when the SSH client and server cannot agree on a suitable host key algorithm.<\/p>\n<\/blockquote>\n<blockquote>\n<p>To resolve this issue, you can use the -o option to specify the host key algorithm explicitly in your SSH command. For example, you can use the -o option to force the use of the &quot;ssh-rsa&quot; host key algorithm like this:<\/p>\n<\/blockquote>\n<pre><code class=\"language-plain_text\">ssh -o HostKeyAlgorithms=+ssh-rsa username@jump.server.com\n\n<\/code><\/pre>\n<blockquote>\n<p>This command tells the SSH client to use the &quot;ssh-rsa&quot; host key algorithm when connecting to the server.<\/p>\n<\/blockquote>\n<blockquote>\n<p>However, it&#8217;s worth noting that &quot;ssh-rsa&quot; is considered less secure than modern alternatives like &quot;ssh-ed25519&quot; or &quot;ecdsa-sha2-nistp256.&quot; If possible, you should encourage the server administrator to update the SSH server&#8217;s host key algorithm configuration to use a more secure option.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Additionally, ensure that your SSH client is up to date, as older versions may not support some of the newer host key algorithms.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u516c\u53f8\u7684IDC\uff0c\u9700\u8981\u901a\u8fc7\u5821\u5792\u673a\u767b\u5f55\uff0c\u6709\u4e24\u79cd\u65b9\u5f0f \u4f7f\u7528web shell\uff0c\u8fd9\u4e2a\u975e\u5e38\u7b80\u5355\uff0c\u5728\u516c\u53f8\u7684opencloud\u9875\u9762\u4e0a\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u800c\u4e14\u7701\u53bb\u4e86\u8f93\u5165ssh\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002 \u4f7f\u7528ssh\u7ec8\u7aef\uff0c\u603b\u662f\u5931\u8d25\uff0c\u8bf7\u6559\u4e86\u8fd0\u7ef4\u540c\u4e8b\uff0c\u4ed6\u4e5f\u4e0d\u6e05\u695a\uff0c\u8fd8\u597d\u6709chatgpt\u7684\u795e\u52a9\u653b\uff0c\u753b\u4e861\u5c0f\u65f6\u89e3\u51b3\u4e86\u3002 \u5931\u8d25\u4fe1\u606f on my mac :# ssh username@jump.server.com Unable to negotiate with X.X.X.X port 22: no matching host key type found. Their offer: ssh-rsa chat gpt\u7ed9\u51fa\u7684\u5efa\u8bae It appears that you&#8217;re trying to SSH from your Mac to the server at jump.server.com, and you&#8217;re encountering the &quot;no matching host key type found&quot; error &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=588\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u89e3\u51b3\u8df3\u677f\u673a\u95ee\u9898<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=588"}],"version-history":[{"count":1,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":589,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/589"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}