{"id":1412,"date":"2017-05-29T18:29:00","date_gmt":"2017-05-29T17:29:00","guid":{"rendered":"https:\/\/www.balajibandi.com\/?p=1412"},"modified":"2022-01-29T18:37:13","modified_gmt":"2022-01-29T18:37:13","slug":"basic-switch-template-with-ssh-config","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=1412","title":{"rendered":"Basic Switch Template with SSH config"},"content":{"rendered":"\n<p>Any switch these config can be used<\/p>\n\n\n\n<p>Config is basic template with aaa config with local account, SSH version 2 Enabled.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>service timestamps debug datetime msec<br>service timestamps log datetime msec<br>no service password-encryption<br>service compress-config<br>!<br>hostname BBCORE &#8212; Change here the name you looking to use.<br>!<br>boot-start-marker<br>boot-end-marker<br>!<br>!<br>enable secret 5 $1$jtK0$yyHFcVM7xyelts1csVwrV\/ &#8211; cisco<br>!<br>username cisco privilege 15 secret 5 $1$0qFD$ZEMDi.7z1QTtF4EuPdlSY. &#8211; cisco<br>aaa new-model<br>!<br>aaa session-id common<br>clock timezone GMT 0 0<br>!<br>vtp mode transparent &#8211; Mode set to Transparent, default is Server<br>!<br>!<br>ip domain-name bb.com &#8211; this required for SSH config<br>ip cef<br>no ipv6 cef<br>!<br>spanning-tree mode pvst<br>spanning-tree extend system-id<br>!<br>!<br>ip forward-protocol nd<br>!<br>no ip http server &#8211; if you want to GUI you can enable, but full Gui access you need tar image<br>no ip http secure-server<br>!<br>ip ssh version 2 &#8211; version 2, you need to generate RSA key 1024<br>ip ssh server algorithm encryption aes128-ctr aes192-ctr aes256-ctr<br>ip ssh server algorithm authentication password<br>ip ssh client algorithm encryption aes128-ctr aes192-ctr aes256-ctr<br>!<br>!<br>control-plane<br>!<br>!<br>line con 0<br>privilege level 15<br>logging synchronous<br>line aux 0<br>line vty 0 4<br>privilege level 15 &#8211; with this it will not ask enable password<br>transport input ssh &#8211; enable SSH Access<br>!<br>!<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"> <\/h1>\n\n\n\n<p>Generate SSH keys :<br>crypto key generate rsa<br>type 1024 or more<\/p>\n\n\n\n<p>#show ip ssh<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"659\" height=\"167\" src=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/01\/image-3.png\" alt=\"\" class=\"wp-image-1413\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/01\/image-3.png 659w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/01\/image-3-300x76.png 300w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Any switch these config can be used Config is basic template with aaa config with local account, SSH version 2 Enabled. service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryptionservice compress-config!hostname BBCORE &#8212; Change here the name you looking to use.!boot-start-markerboot-end-marker!!enable secret 5 $1$jtK0$yyHFcVM7xyelts1csVwrV\/ &#8211; cisco!username cisco privilege 15 secret 5 $1$0qFD$ZEMDi.7z1QTtF4EuPdlSY. &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5],"class_list":["post-1412","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cisco"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1412"}],"version-history":[{"count":1,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1412\/revisions"}],"predecessor-version":[{"id":1414,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1412\/revisions\/1414"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}