<?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 SSH authentication using public/private key in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ssh-authentication-using-public-private-key/m-p/2608852#M72282</link>
    <description>&lt;P&gt;Hello, friends.&lt;/P&gt;&lt;P&gt;I'm trying to setup ssh using public/private key on Cisco router.&lt;/P&gt;&lt;P&gt;1) I launch puttygen. Press "Generate" button.&lt;/P&gt;&lt;P&gt;After key genereating, I get following&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/media/puttygen_0.png" class="migrated-markup-image" /&gt;&lt;/P&gt;&lt;P&gt;2) In the "key passphrase" and "Confirm passphrase" I entered "cisco".&lt;/P&gt;&lt;P&gt;3) After that, I click "save public key" button and save public key in the folder on the desktop of my windows PC.&lt;/P&gt;&lt;P&gt;3) Than I click "save private key" button and save private key in the sane folder.&lt;/P&gt;&lt;P&gt;4) After that I go to the CLI of my router and do following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Router(config)#ip domain-name cisco.com&lt;/P&gt;&lt;P&gt;Router(config)#crypto key generate rsa modulus 1024&lt;/P&gt;&lt;P&gt;Router(config)#ip ssh version 2&lt;/P&gt;&lt;P&gt;Router(config)#ip ssh pubkey-chain&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey)#username denis&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-user)#key-string&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-data)#&amp;lt;here I copy and paste public key, that was generated by puttygen&amp;gt;&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-data)#exit&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-user)#exit&lt;/P&gt;&lt;P&gt;Router(config-ssh-pubkey)#exit&lt;/P&gt;&lt;P&gt;Router(config)#&lt;/P&gt;&lt;P&gt;5) Than I add my private key in Putty settings.&lt;/P&gt;&lt;P&gt;But when I trying to connect to router using putty, I'm getting following error&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/media/putty-error.png" class="migrated-markup-image" /&gt;&lt;/P&gt;&lt;P&gt;6) Why Cisco Router refuse my private key?&lt;/P&gt;&lt;P&gt;Because in the "show run" output of my router I can see, that finerprint is the same as in the puttygen output&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/media/sh_run.png" class="migrated-markup-image" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the output of "show ip ssh" show correct public key, that was generated by puttygen and that was pasted in the configurtion of the router.&lt;/P&gt;&lt;P&gt;Help. please. What I'm doing wrong.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2019 00:43:41 GMT</pubDate>
    <dc:creator>Denis Orlov</dc:creator>
    <dc:date>2019-03-13T00:43:41Z</dc:date>
    <item>
      <title>SSH authentication using public/private key</title>
      <link>https://community.cisco.com/t5/network-access-control/ssh-authentication-using-public-private-key/m-p/2608852#M72282</link>
      <description>&lt;P&gt;Hello, friends.&lt;/P&gt;&lt;P&gt;I'm trying to setup ssh using public/private key on Cisco router.&lt;/P&gt;&lt;P&gt;1) I launch puttygen. Press "Generate" button.&lt;/P&gt;&lt;P&gt;After key genereating, I get following&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/media/puttygen_0.png" class="migrated-markup-image" /&gt;&lt;/P&gt;&lt;P&gt;2) In the "key passphrase" and "Confirm passphrase" I entered "cisco".&lt;/P&gt;&lt;P&gt;3) After that, I click "save public key" button and save public key in the folder on the desktop of my windows PC.&lt;/P&gt;&lt;P&gt;3) Than I click "save private key" button and save private key in the sane folder.&lt;/P&gt;&lt;P&gt;4) After that I go to the CLI of my router and do following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Router(config)#ip domain-name cisco.com&lt;/P&gt;&lt;P&gt;Router(config)#crypto key generate rsa modulus 1024&lt;/P&gt;&lt;P&gt;Router(config)#ip ssh version 2&lt;/P&gt;&lt;P&gt;Router(config)#ip ssh pubkey-chain&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey)#username denis&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-user)#key-string&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-data)#&amp;lt;here I copy and paste public key, that was generated by puttygen&amp;gt;&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-data)#exit&lt;/P&gt;&lt;P&gt;Router(conf-ssh-pubkey-user)#exit&lt;/P&gt;&lt;P&gt;Router(config-ssh-pubkey)#exit&lt;/P&gt;&lt;P&gt;Router(config)#&lt;/P&gt;&lt;P&gt;5) Than I add my private key in Putty settings.&lt;/P&gt;&lt;P&gt;But when I trying to connect to router using putty, I'm getting following error&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/media/putty-error.png" class="migrated-markup-image" /&gt;&lt;/P&gt;&lt;P&gt;6) Why Cisco Router refuse my private key?&lt;/P&gt;&lt;P&gt;Because in the "show run" output of my router I can see, that finerprint is the same as in the puttygen output&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/media/sh_run.png" class="migrated-markup-image" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the output of "show ip ssh" show correct public key, that was generated by puttygen and that was pasted in the configurtion of the router.&lt;/P&gt;&lt;P&gt;Help. please. What I'm doing wrong.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 00:43:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ssh-authentication-using-public-private-key/m-p/2608852#M72282</guid>
      <dc:creator>Denis Orlov</dc:creator>
      <dc:date>2019-03-13T00:43:41Z</dc:date>
    </item>
  </channel>
</rss>

