{"id":10194,"date":"2023-07-31T21:56:46","date_gmt":"2023-08-01T02:56:46","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=10194"},"modified":"2023-07-31T22:00:24","modified_gmt":"2023-08-01T03:00:24","slug":"sshing-to-older-cisco-access-points","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=10194","title":{"rendered":"SSH&#8217;ing to Older Cisco Access Points"},"content":{"rendered":"<p>Trying to ssh into our Cisco access points, we get an error saying &#8220;no matching key exchange method found. Their offer: diffie-hellman-group1-sha1&#8221; &#8230; to one-off enable older, deprecated algorithms, we added a cisco.conf to \/etc\/ssh\/ssh_config.d (\/etc\/ssh\/ssh_config includes \/etc\/ssh\/ssh_config.d\/*.conf)<\/p>\n<pre>Host &lt;IP&gt;\r\n     Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr\r\n     KeyAlgorithms diffie-hellman-group1-sha1<\/pre>\n<p>And restart sshd &#8212; voila*, you can SSH into the router \/ access point \/ etc.<\/p>\n<p>* &#8212; you may get an invalid key length error. In this case, you need to regenerate the key on the Cisco device using a 2048-bit key:<\/p>\n<pre>config term\r\ncrypto key zeroize rsa\r\ncrypto key generate rsa modulus 2048\r\nend<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Trying to ssh into our Cisco access points, we get an error saying &#8220;no matching key exchange method found. Their offer: diffie-hellman-group1-sha1&#8221; &#8230; to one-off enable older, deprecated algorithms, we added a cisco.conf to \/etc\/ssh\/ssh_config.d (\/etc\/ssh\/ssh_config includes \/etc\/ssh\/ssh_config.d\/*.conf) Host &lt;IP&gt; Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr KeyAlgorithms diffie-hellman-group1-sha1 And restart sshd &#8212; voila*, you can SSH into the router &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[1706],"class_list":["post-10194","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-cisco"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10194"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10194\/revisions"}],"predecessor-version":[{"id":10196,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10194\/revisions\/10196"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}