<?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: Exhausted available authentication methods during the step &amp;quot;Install Agents&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286753#M212626</link>
    <description>&lt;P&gt;Are the FQDN hostnames properly setup and properly listed in /etc/hosts, before ssh-keygen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you add SERVER A key to authorized_keys on SERVER B, &amp;nbsp;do a ssh from Server A to B: ssh root@fqdn.serverb.com and you should get a prompt to accept the login (y/n), choose y and enter. &amp;nbsp; &amp;nbsp;Then test Install Agent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the SERVER A to B root login step does not work , you do not have the keys correct in ~/.ssh/authorized_keys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 13:25:37 GMT</pubDate>
    <dc:creator>stevenmatison</dc:creator>
    <dc:date>2020-01-02T13:25:37Z</dc:date>
    <item>
      <title>Exhausted available authentication methods during the step "Install Agents"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286372#M212407</link>
      <description>&lt;P&gt;Hello I try to install CDM&amp;nbsp;6.3.1~1466458.ubuntu1804 on a server A to handle installation of HBASE on a server B.&lt;/P&gt;
&lt;P&gt;But I have a problem during the step "Install Agents".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found some post on the forum which speak about NOPASSWD to add into the sudoers file of the server B, but in my case I can established a ssh connexion from the server A to the server B in command line and run a sudo command without any password, so I think my servers was correctly configured.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone can help me ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 13:38:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286372#M212407</guid>
      <dc:creator>Gregonmac</dc:creator>
      <dc:date>2019-12-26T13:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exhausted available authentication methods during the step "Install Agents"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286734#M212613</link>
      <description>&lt;P&gt;Hello everybody and&amp;nbsp;happy new year 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To complete my previous post, I have to indicate that in my case I try to connect my servers by using a private key.&lt;/P&gt;&lt;P&gt;I have generate a key couple in server A by using the following command :&lt;/P&gt;&lt;P&gt;ssh-keygen -t rsa&lt;/P&gt;&lt;P&gt;And after a add the content of the generated file .ssh/id_rsa.pub into the .ssh/authorized_keys file of server B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a retry I obtain the same result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this trace in the log file&lt;/P&gt;&lt;P&gt;2020-01-02 09:48:39,559 WARN NodeConfiguratorThread-22-0:com.cloudera.server.cmf.node.NodeConfigurator: Could not authenticate to SERVER_B&lt;BR /&gt;net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods&lt;BR /&gt;at net.schmizz.sshj.SSHClient.auth(SSHClient.java:232)&lt;BR /&gt;at net.schmizz.sshj.SSHClient.auth(SSHClient.java:208)&lt;BR /&gt;at com.cloudera.server.cmf.node.NodeConfigurator.connect(NodeConfigurator.java:416)&lt;BR /&gt;at com.cloudera.server.cmf.node.NodeConfigurator.configure(NodeConfigurator.java:1028)&lt;BR /&gt;at com.cloudera.server.cmf.node.NodeConfigurator.run(NodeConfigurator.java:1106)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: net.schmizz.sshj.userauth.UserAuthException: Problem getting public key from PKCS8KeyFile{resource=[PrivateKeyStringResource]}&lt;BR /&gt;at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putPubKey(KeyedAuthMethod.java:46)&lt;BR /&gt;at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:62)&lt;BR /&gt;at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:81)&lt;BR /&gt;at net.schmizz.sshj.userauth.method.AbstractAuthMethod.request(AbstractAuthMethod.java:63)&lt;BR /&gt;at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:68)&lt;BR /&gt;at net.schmizz.sshj.SSHClient.auth(SSHClient.java:226)&lt;BR /&gt;... 9 more&lt;BR /&gt;Caused by: java.io.IOException: unrecognised object: OPENSSH PRIVATE KEY&lt;BR /&gt;at org.bouncycastle.openssl.PEMParser.readObject(Unknown Source)&lt;BR /&gt;at net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile.readKeyPair(PKCS8KeyFile.java:132)&lt;BR /&gt;at net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile.getPublic(PKCS8KeyFile.java:78)&lt;BR /&gt;at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putPubKey(KeyedAuthMethod.java:44)&lt;BR /&gt;... 14 more&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 08:56:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286734#M212613</guid>
      <dc:creator>Gregonmac</dc:creator>
      <dc:date>2020-01-02T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exhausted available authentication methods during the step "Install Agents"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286749#M212625</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72651"&gt;@Gregonmac&lt;/a&gt;&amp;nbsp;You have to perform below steps (cross check if already performed).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Login to the first node (e. g.: CM_Server)&lt;/LI&gt;&lt;LI&gt;Run&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ssh-keygen -t rsa, it will generate new files id_rsa and id_rsa.pub files.&lt;/LI&gt;&lt;LI&gt;Copy the contents of id_rsa.pub to authorized_keys -&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;cat id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;/LI&gt;&lt;LI&gt;You need to copy the contents of id_rsa.pub on to all the nodes in the cluster.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Most Important thing to check the permission of the private key as your stack is complaining about the key is not accessible.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Caused by: java.io.IOException: unrecognised object: OPENSSH PRIVATE KEY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.bouncycastle.openssl.PEMParser.readObject(Unknown Source)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You can also refer to this document from Cloudera -&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.cloudera.com/documentation/director/latest/topics/director_gcp_config_tools.html" target="_blank" rel="nofollow noopener"&gt;https://www.cloudera.com/documentation/director/latest/topics/director_gcp_config_tools.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 12:57:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286749#M212625</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2020-01-02T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exhausted available authentication methods during the step "Install Agents"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286753#M212626</link>
      <description>&lt;P&gt;Are the FQDN hostnames properly setup and properly listed in /etc/hosts, before ssh-keygen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you add SERVER A key to authorized_keys on SERVER B, &amp;nbsp;do a ssh from Server A to B: ssh root@fqdn.serverb.com and you should get a prompt to accept the login (y/n), choose y and enter. &amp;nbsp; &amp;nbsp;Then test Install Agent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the SERVER A to B root login step does not work , you do not have the keys correct in ~/.ssh/authorized_keys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:25:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286753#M212626</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-01-02T13:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exhausted available authentication methods during the step "Install Agents"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286759#M212631</link>
      <description>&lt;P&gt;Thanks a lot, the issue seem to be occur because I does not put the public key in the authorized_auth of server A (I only put it on the other server).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:39:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exhausted-available-authentication-methods-during-the-step/m-p/286759#M212631</guid>
      <dc:creator>Gregonmac</dc:creator>
      <dc:date>2020-01-02T13:39:24Z</dc:date>
    </item>
  </channel>
</rss>

