<?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>question Re: Authentication with ssh private key ( No provider available) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33806#M4509</link>
    <description>It looks like I solved the issue - it seems the python CM API has now been changed for the host_install command. Before it was taking a file name as the private key and is now expecting it to be a string variable</description>
    <pubDate>Wed, 04 Nov 2015 22:06:28 GMT</pubDate>
    <dc:creator>TylerHale</dc:creator>
    <dc:date>2015-11-04T22:06:28Z</dc:date>
    <item>
      <title>Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/23447#M4504</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in order to install a cluster using the CM-Wizard with the private key method i get the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;No provider available for Unknown key file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a custom user and select the respective .ppk file.&lt;/P&gt;&lt;P&gt;If i logged in via ssh from a remote machine with the same credentials, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any ideas or solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;butkiz&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:18:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/23447#M4504</guid>
      <dc:creator>butkiz</dc:creator>
      <dc:date>2022-09-16T09:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/23448#M4505</link>
      <description>ppk refers to Putty's custom format. You should use the key format used by&lt;BR /&gt;OpenSSH. there are tools to convert between these two formats.&lt;BR /&gt;Alternatively, you can use the ssh-keygen tool to create a fresh pair of&lt;BR /&gt;keys&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jan 2015 11:42:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/23448#M4505</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-01-08T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/26657#M4506</link>
      <description>&lt;P&gt;Hi Gautam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a pem file but still getting the same error.&lt;/P&gt;&lt;P&gt;I also tried to create a open-ssh supported format by using&lt;/P&gt;&lt;PRE&gt;ssh-keygen -f my.pem -y &amp;gt; my.pub&lt;/PRE&gt;&lt;P&gt;Could you please help with the correct format that should be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harman&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:19:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/26657#M4506</guid>
      <dc:creator>Harman</dc:creator>
      <dc:date>2015-04-22T05:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33120#M4507</link>
      <description>&lt;P&gt;I am also facing the same problem, m trying to do this in docker containers. I also tried giving private key (id_rsa) but then my browser goes to a freezed state (Pic given below).&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/1206i959B4225CEEA7E74/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="problem1.png" title="problem1.png" /&gt;&lt;/P&gt;&lt;P&gt;It would be really helpful if any one could provide pointers.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 20:16:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33120#M4507</guid>
      <dc:creator>RautShri</dc:creator>
      <dc:date>2015-10-19T20:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33800#M4508</link>
      <description>&lt;P&gt;I'm experiencing this error as well when using the python CM API and calling the host_install command while providing the id_rsa key from the server I'm invoking the python script from. &amp;nbsp;I tried copying the id_rsa file to the CM server /root/.ssh directory as well, but that didn't help. &amp;nbsp;Where should the private key be located when referencing from the host_install command in the python CM API?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 20:15:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33800#M4508</guid>
      <dc:creator>TylerHale</dc:creator>
      <dc:date>2015-11-04T20:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33806#M4509</link>
      <description>It looks like I solved the issue - it seems the python CM API has now been changed for the host_install command. Before it was taking a file name as the private key and is now expecting it to be a string variable</description>
      <pubDate>Wed, 04 Nov 2015 22:06:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/33806#M4509</guid>
      <dc:creator>TylerHale</dc:creator>
      <dc:date>2015-11-04T22:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/35832#M4510</link>
      <description>TylerHale - can you expand pls on how you passed in the private key?&lt;BR /&gt;&lt;BR /&gt;I have tried:&lt;BR /&gt;cmd = cm.host_install(host_username, host_list, private_key="/home/ec2-user/.ssh/id_rsa", cm_repo_url=cm_repo_url)&lt;BR /&gt;&lt;BR /&gt;I have also tried passing the private key as a string variable. i,e:&lt;BR /&gt;cmd = cm.host_install(host_username, host_list, private_key="--begin rsa--.............--end-rsa key--", cm_repo_url=cm_repo_url)&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 05 Jan 2016 12:06:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/35832#M4510</guid>
      <dc:creator>bulmanp</dc:creator>
      <dc:date>2016-01-05T12:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with ssh private key ( No provider available)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/35838#M4511</link>
      <description>&lt;P&gt;bulmanp - The private_key parameter should be the contents of the private key file (in your case, the 2nd option should have worked). &amp;nbsp;Here is the working code I use :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;f&lt;/SPAN&gt; = &lt;SPAN&gt;open&lt;/SPAN&gt;(&lt;SPAN&gt;"/root/.ssh/id_rsa"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"r"&lt;/SPAN&gt;)&lt;BR /&gt;id_rsa = &lt;SPAN&gt;f&lt;/SPAN&gt;.read()&lt;BR /&gt;&lt;SPAN&gt;#print id_rsa&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;.close()&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#passwordless certificate login&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;apicommand &lt;/SPAN&gt;= cm.host_install(&lt;SPAN&gt;user_name&lt;/SPAN&gt;=&lt;SPAN&gt;"root"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                             &lt;SPAN&gt;private_key&lt;/SPAN&gt;=id_rsa&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                             &lt;SPAN&gt;host_names&lt;/SPAN&gt;=hostIds&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                             &lt;SPAN&gt;cm_repo_url&lt;/SPAN&gt;=cm_repo_url&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                             &lt;SPAN&gt;java_install_strategy&lt;/SPAN&gt;=&lt;SPAN&gt;"NONE"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;                             &lt;SPAN&gt;unlimited_jce&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;).wait()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 13:19:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-with-ssh-private-key-No-provider-available/m-p/35838#M4511</guid>
      <dc:creator>TylerHale</dc:creator>
      <dc:date>2016-01-05T13:19:51Z</dc:date>
    </item>
  </channel>
</rss>

