<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH access without password in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517841#M941569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the output of &lt;STRONG&gt;show run | in aaa&lt;/STRONG&gt; and &lt;STRONG&gt;show run | beg line vty 0 15&lt;/STRONG&gt; from the router please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can actually use the below listed command. It basically disables authentication and won't prompt for username and password. Remember, we are using default and not any method list so it will disable authentication on all lines including console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config)#aaa authentication login default none &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would only like to disable authentication on a specific line then create a method list and apply it on that line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config)#&lt;/STRONG&gt;&lt;STRONG&gt;aaa authentication login SSH none&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config)# line vty 0 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config-line)#login authentication SSH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config-line)#exit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jatin Katyal &lt;BR /&gt; - Do rate helpful posts -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Jun 2013 10:23:53 GMT</pubDate>
    <dc:creator>Jatin Katyal</dc:creator>
    <dc:date>2013-06-08T10:23:53Z</dc:date>
    <item>
      <title>SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517835#M941554</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;Hi guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;I have a backup server, which should backup the router configuration files securely for a list of routers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;My colleagues applied this in Juniper but unfortunately am unable to figure it out on Cisco routers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;The requirement is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;I want to execute a cron job on the backup server, which will backup the running configs for a list of routers using ssh and without specifying a password. I want to insert a certificate into the routers, which was created on the backup server for a specific username called "backup_user”. Then when the cron job is executed it will issue the required command(s) without specifying any password or ask for any user confirmation/prompt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;Am thinking to breakdown this requirement as follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;The first step is that I want to execute "ssh -l backup_user 3.3.3.3" on the backup sever from the command line so that I will login to the router, which is having 3.3.3.3 as a loopback IP, without being asked for a password/prompt. Being asked for any confirmation/acceptance for the first time accessing the router from the backup server is ok, but later I don’t want to be asked for any questions while trying to login/access the 3.3.3.3 router from the backup server. So how can I do that ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;My colleagues who implemented it in Juniper did the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;1- They created a self-signed certificate in the backup server banded to user "backup_user".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;2- They create a local user on the router also called "backup_user".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;3- They imported the certificate generated in the backup server into the router and they binded it to the local user "backup_user". How can I do both in Cisco routers ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;4- They issued the "ssh -l backup_user x.x.x.x" from the backup server. Once they did that, they were able to login to the router.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;So the point here is that instead for the router to ask for a password to authenticate "backup_user" who is accessing from the backup server, it won't ask for it and it will &lt;SPAN style="line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;consider &lt;/SPAN&gt;the user as l&lt;SPAN style="line-height: 115%; font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt;egitimate &lt;/SPAN&gt;and he will be granted access. How this can be done ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Mohammad Jamal Tabbara&lt;/P&gt;&lt;P&gt;CCIE R&amp;amp;S # 24487&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 12:07:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517835#M941554</guid>
      <dc:creator>mjtabbara</dc:creator>
      <dc:date>2020-02-21T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517836#M941555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting Mohammad!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you want to do certificate client authentication for SSH on IOS.&lt;/P&gt;&lt;P&gt;I am not sure if it can be done, but please post the question in the AAA forum and let's see if they can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 16:50:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517836#M941555</guid>
      <dc:creator>Panos Kampanakis</dc:creator>
      <dc:date>2010-10-26T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517837#M941556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A class="jiveTT-hover-user jive-username-link" href="https://community.cisco.com/people/pkampana" id="jive-239738,738,897,785,180,256"&gt;&lt;STRONG style="color: #000000; "&gt;pkampana&lt;/STRONG&gt;&lt;/A&gt; !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the solution for that.&lt;/P&gt;&lt;P&gt;This called "RSA-based public key authentication" it is a new feature under SSH version 2 Enhancments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doucment name: Secure Shell Version 2 Support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: &lt;A href="http://www.cisco.com/en/US/docs/ios/sec_user_services/configuration/guide/sec_secure_shell_v2.html"&gt;http://www.cisco.com/en/US/docs/ios/sec_user_services/configuration/guide/sec_secure_shell_v2.html&lt;/A&gt;&lt;!--googleoff: index--&gt;&lt;!--googleoff: snippet--&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is explained under:&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Secure Shell Version 2 Enhancements for RSA Keys&lt;/STRONG&gt;"&lt;/P&gt;&lt;P class="p_H_Head2"&gt;and under "&lt;STRONG&gt;Configuring the Cisco IOS SSH Server to Perform RSA-Based User Authentication&lt;/STRONG&gt;"&lt;/P&gt;&lt;P class="p_H_Head2"&gt;&lt;/P&gt;&lt;P class="p_H_Head2"&gt;This feature is only supported in IOS &lt;STRONG&gt;15.0(1)M&lt;/STRONG&gt; and later versions.&lt;/P&gt;&lt;P class="p_H_Head2"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Thanks and best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Mohammad Jamal Tabbara&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;CCIE R&amp;amp;S# 24487&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p_H_Head2"&gt;&lt;!-- [DocumentBodyEnd:e6262c48-c5c1-4432-b885-323e48cd24ec] --&gt;&lt;!-- BEGIN attachments --&gt;&lt;!-- END attachments --&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 03:25:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517837#M941556</guid>
      <dc:creator>mjtabbara</dc:creator>
      <dc:date>2010-10-27T03:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517838#M941558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 04:08:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517838#M941558</guid>
      <dc:creator>Panos Kampanakis</dc:creator>
      <dc:date>2010-10-27T04:08:15Z</dc:date>
    </item>
    <item>
      <title>SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517839#M941564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Mohmammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ma trying to loging in to Cisco Router uc540 from Linux server using rsa ssh key of Linux server without asking password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its worked but router is asking passphare key every login time when i am login from linux server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled the AAA login and even i given 15 privalage access to backup user on the router uc540.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another one problem is that when i login into cisco uc540 router using ssh private key from linux server its first asked me for passphare after that i logged into the cisco router, but still i am on non configuration user mode and then i need to type enable password to copy the backup configuration file of cisco router.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me implemate this auto backup from linux server to cisco router using ssh private and publick key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khandesha&lt;/P&gt;&lt;P&gt;CCNA,&lt;/P&gt;&lt;P&gt;Sr. Network and Security Administrator&lt;/P&gt;&lt;P&gt;India.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 08:25:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517839#M941564</guid>
      <dc:creator />
      <dc:date>2013-03-14T08:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517840#M941566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set this up for about 50-60 switches and routers, and I want to ssh into them from a couple of computers without asking for login. I am having a hard time setting it up, can you please post the steps you have taken to do so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a truspoint, which I do not think that I need but it tells me that I need to authenticate it somehow and the other problem I have is how to send teh public key to the machine I&amp;nbsp; am trying to ssh from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Laith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:54:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517840#M941566</guid>
      <dc:creator>laithabbas0</dc:creator>
      <dc:date>2013-06-06T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access without password</title>
      <link>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517841#M941569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the output of &lt;STRONG&gt;show run | in aaa&lt;/STRONG&gt; and &lt;STRONG&gt;show run | beg line vty 0 15&lt;/STRONG&gt; from the router please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can actually use the below listed command. It basically disables authentication and won't prompt for username and password. Remember, we are using default and not any method list so it will disable authentication on all lines including console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config)#aaa authentication login default none &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would only like to disable authentication on a specific line then create a method list and apply it on that line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config)#&lt;/STRONG&gt;&lt;STRONG&gt;aaa authentication login SSH none&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config)# line vty 0 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config-line)#login authentication SSH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IOS(config-line)#exit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jatin Katyal &lt;BR /&gt; - Do rate helpful posts -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jun 2013 10:23:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ssh-access-without-password/m-p/1517841#M941569</guid>
      <dc:creator>Jatin Katyal</dc:creator>
      <dc:date>2013-06-08T10:23:53Z</dc:date>
    </item>
  </channel>
</rss>

