{"id":12685,"date":"2021-06-29T11:52:51","date_gmt":"2021-06-29T16:52:51","guid":{"rendered":"https:\/\/jianmingli.com\/wp\/?p=12685"},"modified":"2021-06-29T11:52:51","modified_gmt":"2021-06-29T16:52:51","slug":"ssh-errors-no-matching-key-exchange-method-found","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=12685","title":{"rendered":"ssh Errors: no matching key exchange method found"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#no_matching_key_exchange_method_found\">no matching key exchange method found<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#no_matching_cipher_found\">no matching cipher found<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"no_matching_key_exchange_method_found\"><h2>no matching key exchange method found<\/h2><\/span>\n<p>* Error message:<\/p>\n<pre lang=\"bash\">\r\nUnable to negotiate with x.x.x.x port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1\r\nConnection closed\r\nConnection closed.\r\n<\/pre>\n<p>* Find ssh client supportd key exchange algorithms:<\/p>\n<pre lang=\"bash\">\r\nssh -Q kex\r\n\r\ndiffie-hellman-group1-sha1\r\n...\r\n<\/pre>\n<p>* Solutioin:<br \/>\n&#8211; add to .ssh\/config file:<\/p>\n<pre lang=\"bash\">\r\nHost x.x.x.x\r\n        KexAlgorithms +diffie-hellman-group1-sha1\r\n<\/pre>\n<span id=\"no_matching_cipher_found\"><h2>no matching cipher found<\/h2><\/span>\n<p>* Error message:<\/p>\n<pre lang=\"bash\">\r\nUnable to negotiate with x.x.x.x port 22: no matching cipher found. Their offer: twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc,aes256-cbc,aes128-cbc\r\n<\/pre>\n<pre lang=\"bash\">\r\nssh -Q cipher\r\n...\r\naes256-cbc\r\n...\r\n<\/pre>\n<p>* Solutioin:<br \/>\n&#8211; add to .ssh\/config file:<\/p>\n<pre lang=\"bash\">\r\nHost x.x.x.x\r\n        Ciphers aes256-cbc\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href='http:\/\/www.openssh.com\/legacy.html'>OpenSSH Legacy Options<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>no matching key exchange method found * Error message: Unable to negotiate with x.x.x.x port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 Connection closed Connection closed. * Find ssh client supportd key exchange algorithms: ssh -Q kex &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=12685\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[451],"tags":[307,841,639],"class_list":["post-12685","post","type-post","status-publish","format-standard","hentry","category-ssh","tag-error","tag-sftp","tag-ssh"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-3iB","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12685"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12685\/revisions"}],"predecessor-version":[{"id":12686,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12685\/revisions\/12686"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}