{"id":1401,"date":"2020-11-18T11:54:36","date_gmt":"2020-11-17T22:54:36","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=1401"},"modified":"2020-11-18T11:54:36","modified_gmt":"2020-11-17T22:54:36","slug":"enable-ssh-on-a-cisco-router","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=1401","title":{"rendered":"Enable SSH on a Cisco Router"},"content":{"rendered":"<h2>Pre-requisite<\/h2>\n<ul>\n<li>Putty application<\/li>\n<\/ul>\n<h2>Enabling SSH<\/h2>\n<ol>\n<li>\n<p>Connect to <strong>cisco console<\/strong> using <strong>putty<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Press the <strong>enter key<\/strong> to enter into <strong>user mode<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Execute the following command to enter into <strong>privilege mode<\/strong>:<\/p>\n<pre><code>enable<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Load the startup-config<\/strong> into the running-config using the following command:<\/p>\n<pre><code>copy startup-config running-config<\/code><\/pre>\n<\/li>\n<li>\n<p>Execute the following command to enter into the <strong>configuration mode<\/strong>:<\/p>\n<pre><code>config terminal<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Change the hostname<\/strong> using the following syntax:<\/p>\n<pre><code>hostname <HOSTNAME><\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Change the domain name<\/strong> using the following syntax:<\/p>\n<pre><code>ip domain-name <DOMAIN_NAME><\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Generate the SSH keys<\/strong> using the following command:<\/p>\n<pre><code>crypto key generate rsa general-keys<\/code><\/pre>\n<\/li>\n<li>\n<p>On <strong>How many bits in the modules [512]:<\/strong>, type in <strong>2048<\/strong> and press the <strong>enter key<\/strong>.<\/p>\n<\/li>\n<li>\n<p><strong>Enable SSH version 2<\/strong> using the following command:<\/p>\n<pre><code>ip ssh version 2<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Create an SSH credential<\/strong> using the following syntax:<\/p>\n<pre><code>username <USERNAME> secret <PASSWORD><\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Create 5 <em>(i.e. vty 0 to 4)<\/em> virtual terminals<\/strong> for SSH connections, using the following command.<\/p>\n<pre><code>line vty 0 4<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Allow only SSH<\/strong> to the newly created virtual connection using the following command:<\/p>\n<pre><code>transport input ssh<\/code><\/pre>\n<\/li>\n<li>\n<p>Use only the <strong>local database for credentials<\/strong> using the following command:<\/p>\n<pre><code>login local<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Exit the virtual terminal<\/strong> configuration:<\/p>\n<pre><code>exit<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Exit the configuration mode<\/strong>:<\/p>\n<pre><code>exit<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>Save the update on the running-config<\/strong> to the startup-config file using the following command:<\/p>\n<pre><code>copy running-config startup-config<\/code><\/pre>\n<\/li>\n<li>\n<p>Using <strong>putty<\/strong>, connect on any <strong>known IP<\/strong> of the router via SSH <strong>using the credentials<\/strong> you made from <strong>step 11<\/strong>. <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Pre-requisite Putty application Enabling SSH Connect to cisco console using putty. Press the enter key to enter into user mode. Execute the following command to enter into privilege mode: enable Load the startup-config into the running-config using the following command: copy startup-config running-config Execute the following command to enter into the configuration mode: config terminal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[66,10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1401"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1401"}],"version-history":[{"count":1,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1401\/revisions"}],"predecessor-version":[{"id":1402,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1401\/revisions\/1402"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}