<?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 How to use netconf ncclient to login with SSH key instead of username and password? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/how-to-use-netconf-ncclient-to-login-with-ssh-key-instead-of/m-p/4176170#M2139</link>
    <description>&lt;P&gt;We have a Cisco CSR 1000V appliance in AWS that only has SSH key authentication enabled (we disabled logins using username / password). How can we use SSH keys with ncclient in python? I didn't see this in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from ncclient import manager&lt;BR /&gt;m = manager.connect(host='host', username='username', password='password')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the equivalent for logging in with an SSH key?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 22:31:52 GMT</pubDate>
    <dc:creator>Sam Brynes</dc:creator>
    <dc:date>2020-10-29T22:31:52Z</dc:date>
    <item>
      <title>How to use netconf ncclient to login with SSH key instead of username and password?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-use-netconf-ncclient-to-login-with-ssh-key-instead-of/m-p/4176170#M2139</link>
      <description>&lt;P&gt;We have a Cisco CSR 1000V appliance in AWS that only has SSH key authentication enabled (we disabled logins using username / password). How can we use SSH keys with ncclient in python? I didn't see this in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from ncclient import manager&lt;BR /&gt;m = manager.connect(host='host', username='username', password='password')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the equivalent for logging in with an SSH key?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 22:31:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-use-netconf-ncclient-to-login-with-ssh-key-instead-of/m-p/4176170#M2139</guid>
      <dc:creator>Sam Brynes</dc:creator>
      <dc:date>2020-10-29T22:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use netconf ncclient to login with SSH key instead of username and password?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-use-netconf-ncclient-to-login-with-ssh-key-instead-of/m-p/4176947#M2140</link>
      <description>&lt;P&gt;There is an open issue on GitHub .. you could try the suggestion. If that doesn't work .. I would suggest updating the issue on Github.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ncclient/ncclient/issues/192" target="_blank"&gt;https://github.com/ncclient/ncclient/issues/192&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;from ncclient import manager

with manager.connect(host="&amp;lt;your hostname or IP&amp;gt;", device_params={'name': '&amp;lt;your device type if there is match&amp;gt;'}, 
key_filename="&amp;lt;path to your private key&amp;gt;", hostkey_verify = False):

    c = (m.get_config(source='running'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 09:58:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-use-netconf-ncclient-to-login-with-ssh-key-instead-of/m-p/4176947#M2140</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-11-01T09:58:25Z</dc:date>
    </item>
  </channel>
</rss>

