{"id":338,"date":"2024-04-01T08:28:14","date_gmt":"2024-04-01T01:28:14","guid":{"rendered":"https:\/\/prosindo.com\/blog\/?p=338"},"modified":"2024-04-01T08:28:14","modified_gmt":"2024-04-01T01:28:14","slug":"older-ssh-server-compatibility","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2024\/04\/01\/older-ssh-server-compatibility\/","title":{"rendered":"Older SSH Server Compatibility"},"content":{"rendered":"\n<p>Newer SSH client cannot connect to older SSH server (dropbear openwrt) because:<\/p>\n\n\n\n<p>The RSA SHA-1 hash algorithm is being quickly deprecated across operating systems and SSH clients because of various security vulnerabilities, with many of these technologies now outright denying the use of this algorithm.<\/p>\n\n\n\n<p><strong>error message: no mutual signature algorithm<\/strong><\/p>\n\n\n\n<p>edit \/etc\/ssh\/ssh_config<\/p>\n\n\n\n<p>HostKeyAlgorithms=+ssh-rsa<br>PubkeyAuthentication yes<br>PubkeyAcceptedKeyTypes=+ssh-rsa<\/p>\n\n\n\n<p><strong>error message: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au<\/strong><\/p>\n\n\n\n<p>Windows, the OpenSSH Client (ssh) reads configuration data from a configuration file in the following order:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>By launching ssh.exe with the -F parameter, specifying a path to a configuration file and an entry name from that file.\nA user's configuration file at %userprofile%\\.ssh\\config.\nThe system-wide configuration file at %programdata%\\ssh\\ssh_config.<\/code><\/pre>\n\n\n\n<p>The OpenSSH website has a page dedicated to legacy issues such as this one. It suggests the following approach, on the client:<\/p>\n\n\n\n<p>ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 123.123.123.123<\/p>\n\n\n\n<p>or more permanently, adding<\/p>\n\n\n\n<p>Host 123.123.123.123<br>KexAlgorithms +diffie-hellman-group1-sha1<\/p>\n\n\n\n<p>The OpenSSH website has a page dedicated to legacy issues such as this one. It suggests the following approach, on the client:<\/p>\n\n\n\n<p>ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 123.123.123.123<\/p>\n\n\n\n<p>or more permanently, adding<\/p>\n\n\n\n<p>Host 123.123.123.123<br>KexAlgorithms +diffie-hellman-group1-sha1<\/p>\n\n\n\n<p>to ~\/.ssh\/config<\/p>\n\n\n\n<p><a href=\"https:\/\/confluence.atlassian.com\/bitbucketserverkb\/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html\">https:\/\/confluence.atlassian.com\/bitbucketserverkb\/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html<\/a><br>https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/openssh\/openssh_server_configuration<br>https:\/\/unix.stackexchange.com\/questions\/340844\/how-to-enable-diffie-hellman-group1-sha1-key-exchange-on-debian-8-0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Newer SSH client cannot connect to older SSH server (dropbear openwrt) because: The RSA SHA-1 hash algorithm is being quickly deprecated across operating systems and SSH clients because of various security vulnerabilities, with many of these technologies now outright denying the use of this algorithm. error message: no mutual signature algorithm edit \/etc\/ssh\/ssh_config HostKeyAlgorithms=+ssh-rsaPubkeyAuthentication yesPubkeyAcceptedKeyTypes=+ssh-rsa &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2024\/04\/01\/older-ssh-server-compatibility\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Older SSH Server Compatibility&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":3,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":457,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/338\/revisions\/457"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}