{"id":630,"date":"2017-11-27T16:47:54","date_gmt":"2017-11-27T14:47:54","guid":{"rendered":"https:\/\/www.moving-it.net\/how-to-configure-ssh-to-a-cisco-router\/"},"modified":"2018-01-20T11:15:31","modified_gmt":"2018-01-20T09:15:31","slug":"how-to-configure-ssh-to-a-cisco-router","status":"publish","type":"post","link":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/","title":{"rendered":"How to configure SSH to a Cisco router?"},"content":{"rendered":"<p>In this article we will learn how to enable access by SSH (Secure Shell) to a Cisco router.<\/p>\n<h2 style=\"text-align: center;\">Why enable SSH? Is not Telnet enough?<\/h2>\n<h2 style=\"text-align: center;\"><img decoding=\"async\" class=\"size-full wp-image-169 aligncenter\" src=\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png\" alt=\"ssh\" width=\"256\" height=\"256\" srcset=\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh-66x66.png 66w, https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh-150x150.png 150w, https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png 256w\" sizes=\"(max-width: 256px) 100vw, 256px\" \/><\/h2>\n<p>No, the telnet is an access protocol for managing routers and other devices that is famous for the lack of security it offers. The non-encrypted communication and with any packet analyzer such as <a href=\"https:\/\/www.wireshark.org\/\"> Wireshark <\/a> you can capture the commands that are sent to the router.<\/p>\n<p>To ensure secure data access and transmission, we recommend using the SSH v2 protocol. That Encrypt communications and prevents them from being intercepted.<\/p>\n<h2 style=\"text-align: center;\">How do we enable SSH to a Cisco Router?<\/h2>\n<ol>\n<li>We connect by console to the Cisco router. For more info follow this<a href=\"https:\/\/www.moving-it.net\/en\/connect-pc-to-cisco-switch-console-cable\/\">link<\/a>. If you already have Telnet access, you can also do so.<\/li>\n<li>We access the console and we will have to put the following commands:<\/li>\n<\/ol>\n<p>We enter router configuration mode<\/p>\n<p><em>Router#configure terminal<\/em><\/p>\n<p>Configure the router name<\/p>\n<p><em>Router(config)#hostname R_Movingit<\/em><\/p>\n<p>We configure the domain, since without it you will not be able to generate the rsa keys.<\/p>\n<p><em>R_Movingit(config)#ip domain-name moving-it.net<\/em><\/p>\n<p>Next we generate the encryption key.<\/p>\n<p><em>R_Movingit(config)#crypto key generate rsa 1028<\/em><\/p>\n<p>Once generated, we will add some SSH configuration commands.<\/p>\n<p>If the user does not enter any user or password within 30 seconds, the connection will be automatically closed.<\/p>\n<p>R_Movingit(config)#ip ssh time-out\u00a030<\/p>\n<p>We also configure a maximum of 3 successful authentication attempts.<\/p>\n<p>R_Movingit(config)#ip ssh authentication-retries\u00a03<\/p>\n<p>We enable the ssh protocol of version 2 which is more secure.<\/p>\n<p>R_Movingit(config)#ip ssh version 2<\/p>\n<p>We will now create a user with privilege 15 (the maximum you can access without having to enter the enable password).<\/p>\n<p>R_Movingit(config)#username\u00a0admin\u00a0privilege 15 password \u00a0cisco<\/p>\n<p>We will now configure the line we will enter, in this case by network which are the lines vty 0 4.<\/p>\n<p>R_Movingit(config)#line vty\u00a00 4<\/p>\n<p>We enable that it can only be accessed by ssh.<\/p>\n<p>R_Movingit(config-line)#transport input ssh<\/p>\n<p>The user who will be able to access through this line are the ones defined by hand &#8220;in local&#8221;.<\/p>\n<p>R_Movingit(config-line)#login local<\/p>\n<p>Uala!! We already have SSH access enabled. Try it out and if you have any problems don&#8217;t hesitate to add your comments.<\/p>\n<p>Cheers and see you on the nets!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will learn how to enable access by SSH (Secure Shell) to a Cisco router. Why enable SSH? Is not Telnet enough? No, the telnet is an access protocol for managing routers and other devices that is famous for the lack of security it offers. The non-encrypted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":169,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rating_form_position":"","rating_results_position":"","mr_structured_data_type":"","footnotes":""},"categories":[27,28,29],"tags":[],"class_list":["post-630","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cisco-networks","category-networking-nets","category-networking-security"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to configure SSH on a Cisco router? Moving-IT shows you it.<\/title>\n<meta name=\"description\" content=\"In this article we help you to configure the SSH access for Cisco routers. Securely access and manage your devices. Network Security.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure SSH on a Cisco router? Moving-IT shows you it.\" \/>\n<meta property=\"og:description\" content=\"In this article we help you to configure the SSH access for Cisco routers. Securely access and manage your devices. Network Security.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\" \/>\n<meta property=\"og:site_name\" content=\"Moving-IT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/movingit.net\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-27T14:47:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-20T09:15:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png\" \/>\n\t<meta property=\"og:image:width\" content=\"256\" \/>\n\t<meta property=\"og:image:height\" content=\"256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"movingitadm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@movingitnet\" \/>\n<meta name=\"twitter:site\" content=\"@movingitnet\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"movingitadm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\"},\"author\":{\"name\":\"movingitadm\",\"@id\":\"https:\/\/www.moving-it.net\/en\/#\/schema\/person\/3839560932bba6035804db55523327fd\"},\"headline\":\"How to configure SSH to a Cisco router?\",\"datePublished\":\"2017-11-27T14:47:54+00:00\",\"dateModified\":\"2018-01-20T09:15:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\"},\"wordCount\":387,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png\",\"articleSection\":[\"Cisco\",\"Networking\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\",\"url\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\",\"name\":\"How to configure SSH on a Cisco router? Moving-IT shows you it.\",\"isPartOf\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png\",\"datePublished\":\"2017-11-27T14:47:54+00:00\",\"dateModified\":\"2018-01-20T09:15:31+00:00\",\"description\":\"In this article we help you to configure the SSH access for Cisco routers. Securely access and manage your devices. Network Security.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage\",\"url\":\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png\",\"contentUrl\":\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png\",\"width\":256,\"height\":256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inici\",\"item\":\"https:\/\/www.moving-it.net\/en\/it-consulting-erp-and-crm-management-for-companies-and-self-employed\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to configure SSH to a Cisco router?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.moving-it.net\/en\/#website\",\"url\":\"https:\/\/www.moving-it.net\/en\/\",\"name\":\"Moving-IT\",\"description\":\"Consultoria IT y Gesti\u00f3n ERP\/CRM\",\"publisher\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.moving-it.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.moving-it.net\/en\/#organization\",\"name\":\"Moving-IT\",\"url\":\"https:\/\/www.moving-it.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moving-it.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/moving-it-new-1.png\",\"contentUrl\":\"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/moving-it-new-1.png\",\"width\":300,\"height\":60,\"caption\":\"Moving-IT\"},\"image\":{\"@id\":\"https:\/\/www.moving-it.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/movingit.net\/\",\"https:\/\/x.com\/movingitnet\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.moving-it.net\/en\/#\/schema\/person\/3839560932bba6035804db55523327fd\",\"name\":\"movingitadm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moving-it.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7ed72a19e1e597cc5a168acdef5341e2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7ed72a19e1e597cc5a168acdef5341e2?s=96&d=mm&r=g\",\"caption\":\"movingitadm\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to configure SSH on a Cisco router? Moving-IT shows you it.","description":"In this article we help you to configure the SSH access for Cisco routers. Securely access and manage your devices. Network Security.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/","og_locale":"en_US","og_type":"article","og_title":"How to configure SSH on a Cisco router? Moving-IT shows you it.","og_description":"In this article we help you to configure the SSH access for Cisco routers. Securely access and manage your devices. Network Security.","og_url":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/","og_site_name":"Moving-IT","article_publisher":"https:\/\/www.facebook.com\/movingit.net\/","article_published_time":"2017-11-27T14:47:54+00:00","article_modified_time":"2018-01-20T09:15:31+00:00","og_image":[{"width":256,"height":256,"url":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png","type":"image\/png"}],"author":"movingitadm","twitter_card":"summary_large_image","twitter_creator":"@movingitnet","twitter_site":"@movingitnet","twitter_misc":{"Written by":"movingitadm","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#article","isPartOf":{"@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/"},"author":{"name":"movingitadm","@id":"https:\/\/www.moving-it.net\/en\/#\/schema\/person\/3839560932bba6035804db55523327fd"},"headline":"How to configure SSH to a Cisco router?","datePublished":"2017-11-27T14:47:54+00:00","dateModified":"2018-01-20T09:15:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/"},"wordCount":387,"commentCount":0,"publisher":{"@id":"https:\/\/www.moving-it.net\/en\/#organization"},"image":{"@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage"},"thumbnailUrl":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png","articleSection":["Cisco","Networking","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/","url":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/","name":"How to configure SSH on a Cisco router? Moving-IT shows you it.","isPartOf":{"@id":"https:\/\/www.moving-it.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage"},"image":{"@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage"},"thumbnailUrl":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png","datePublished":"2017-11-27T14:47:54+00:00","dateModified":"2018-01-20T09:15:31+00:00","description":"In this article we help you to configure the SSH access for Cisco routers. Securely access and manage your devices. Network Security.","breadcrumb":{"@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#primaryimage","url":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png","contentUrl":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/ssh.png","width":256,"height":256},{"@type":"BreadcrumbList","@id":"https:\/\/www.moving-it.net\/en\/how-to-configure-ssh-to-a-cisco-router\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inici","item":"https:\/\/www.moving-it.net\/en\/it-consulting-erp-and-crm-management-for-companies-and-self-employed\/"},{"@type":"ListItem","position":2,"name":"How to configure SSH to a Cisco router?"}]},{"@type":"WebSite","@id":"https:\/\/www.moving-it.net\/en\/#website","url":"https:\/\/www.moving-it.net\/en\/","name":"Moving-IT","description":"Consultoria IT y Gesti\u00f3n ERP\/CRM","publisher":{"@id":"https:\/\/www.moving-it.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.moving-it.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.moving-it.net\/en\/#organization","name":"Moving-IT","url":"https:\/\/www.moving-it.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moving-it.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/moving-it-new-1.png","contentUrl":"https:\/\/www.moving-it.net\/wp-content\/uploads\/2016\/03\/moving-it-new-1.png","width":300,"height":60,"caption":"Moving-IT"},"image":{"@id":"https:\/\/www.moving-it.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/movingit.net\/","https:\/\/x.com\/movingitnet"]},{"@type":"Person","@id":"https:\/\/www.moving-it.net\/en\/#\/schema\/person\/3839560932bba6035804db55523327fd","name":"movingitadm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moving-it.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7ed72a19e1e597cc5a168acdef5341e2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7ed72a19e1e597cc5a168acdef5341e2?s=96&d=mm&r=g","caption":"movingitadm"}}]}},"multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/comments?post=630"}],"version-history":[{"count":1,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/posts\/630\/revisions\/631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/media\/169"}],"wp:attachment":[{"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/media?parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/categories?post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moving-it.net\/en\/wp-json\/wp\/v2\/tags?post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}