{"id":773,"date":"2024-08-28T11:06:22","date_gmt":"2024-08-28T09:06:22","guid":{"rendered":"https:\/\/exchangetimes.net\/?p=773"},"modified":"2024-08-28T11:06:22","modified_gmt":"2024-08-28T09:06:22","slug":"unable-to-negotiate-with-ip_address-port-22-no-matching-host-key-type-found-their-offer-ssh-rsa","status":"publish","type":"post","link":"https:\/\/exchangetimes.net\/?p=773","title":{"rendered":"Unable to negotiate with IP_Address port 22: no matching host key type found. Their offer: ssh-rsa"},"content":{"rendered":"\n\n\n<p>I am busy building a lab for studies and received the below error trying to ssh to the VM.<\/p>\n<p><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-775\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh.png\" alt=\"\" width=\"921\" height=\"27\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh.png 921w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh-300x9.png 300w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh-768x23.png 768w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/a><\/p>\n\n\n\n<p>To ssh to the VM you can pass the -oHostKeyAlgorithms flag and add the key type offered from the server:<\/p>\n<p>ssh -oHostKeyAlgorithms=+ssh-rsa username@IP_Address<\/p>\n<p>Enter <em>yes <\/em>when asked if you want to continue connecting:<br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-776\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh2.png\" alt=\"\" width=\"756\" height=\"142\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh2.png 756w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2024\/08\/ssh2-300x56.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/a><\/p>\n\n\n\n\n\n\n\n<p>You should now be able to ssh into the destination using the specified key.<\/p>\n<p>I found the above from <a href=\"_wp_link_placeholder\" data-wplink-edit=\"true\">this post<\/a> and they also have a section on how to permanently add the option to use this key for the specified destination host without passing the flag each time when connecting to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am busy building a lab for studies and received the below error trying to ssh to the VM. To ssh to the VM you can pass the -oHostKeyAlgorithms flag and add the key type offered from the server: ssh -oHostKeyAlgorithms=+ssh-rsa username@IP_Address Enter yes when asked if you want to continue connecting: You should now be able to ssh into the destination using the specified key. I found the above from this post and they also have a section on how to permanently add the option to use this key for the specified destination host without passing the flag each time when connecting to it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[630,629,628],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ssh-rsa","tag-unable-to-negotiate-with-ip_address-port-22-no-matching-host-key-type-found-their-offer-ssh-rsa","tag-use-a-specified-type-of-key-when-ssh-to-a-destintaion-host"],"_links":{"self":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=773"}],"version-history":[{"count":1,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":777,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/773\/revisions\/777"}],"wp:attachment":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}