{"id":1048,"date":"2012-12-10T15:05:44","date_gmt":"2012-12-10T20:05:44","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1048"},"modified":"2012-12-10T15:05:44","modified_gmt":"2012-12-10T20:05:44","slug":"enable-ssh-cisco-ios","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2012\/12\/enable-ssh-cisco-ios\/","title":{"rendered":"Enable SSH Cisco IOS"},"content":{"rendered":"<p>So I wanted to disable telnet and enable SSH only on the switches &#8211; take my 2950 and 3560 switches and change the following:<br \/>\n<strong>Change the hostname and generate the crypto keys<\/strong><br \/>\n<code>conf t<\/code><br \/>\n<code>hostname HOSTNAMEHERE<\/code><br \/>\n<code>ip domain-name HOSTDOMAINHERE<\/code><br \/>\n<code>crypto key generate rsa<\/code><br \/>\nIf this command does not work then you need to update to a K9 or crytographic IOS!<br \/>\n<code>end<\/code><br \/>\n<code>show ip ssh<\/code><br \/>\n<code>wr mem<\/code><\/p>\n<p><strong>Enable the AAA authentication<\/strong><br \/>\n<code>conf t<\/code><br \/>\n<code>service password-encryption<\/code><br \/>\n<code>aaa new-model<\/code><br \/>\n<code>aaa authentication login default local<\/code><br \/>\n<code>aaa authorization exec default local<\/code><br \/>\n<code>aaa authorization network default local<\/code><br \/>\n<code>exit<\/code><\/p>\n<p><strong>Create the User<\/strong><br \/>\n<code>conf t<\/code><br \/>\n<code>username CISCO password PASSWORD<\/code><br \/>\n<code>end<\/code><\/p>\n<p><strong>Create passwords<\/strong><br \/>\n<code>conf t<\/code><br \/>\n<code>enable secret PASSWORD<\/code><br \/>\n<code>line con 0<\/code><br \/>\n<code>password PASSWORD<\/code><br \/>\n<code>line vty 0 4<\/code><br \/>\n<code>no password<\/code><br \/>\n<code>transport input ssh<\/code><br \/>\n<code>line vty 5 15<\/code><br \/>\n<code>no password<\/code><br \/>\n<code>transport input ssh<\/code><br \/>\n<code>exit<\/code><\/p>\n<p><strong>Set SSH arguments<\/strong><br \/>\n<code>conf t<\/code><br \/>\n<code>ip ssh version 2<\/code><br \/>\n<code>ip ssh time-out 60<\/code><br \/>\n<code>ip ssh authentication-retries 2<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I wanted to disable telnet and enable SSH only on the switches &#8211; take my 2950 and 3560 switches and change the following: Change the hostname and generate the crypto keys conf t hostname HOSTNAMEHERE ip domain-name HOSTDOMAINHERE crypto key generate rsa If this command does not work then you need to update to &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2012\/12\/enable-ssh-cisco-ios\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Enable SSH Cisco IOS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1048","post","type-post","status-publish","format-standard","hentry","category-networking"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1048"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1048\/revisions"}],"predecessor-version":[{"id":1049,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1048\/revisions\/1049"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}