<?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: not able to register host in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185252#M75721</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the ambari server host you need to do this:&lt;/P&gt;&lt;PRE&gt;# ssh-copy-id -i ~/.ssh/id_rsa.pub  root@newhost.example.com&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The above command will copy the SSH public key from Ambari server host "~/.ssh/id_rsa.pub" to the new host (for example newhost.example.com)  then once you are able to run the command successfully then you should be able to do passwordless ssh from Ambari Serevr host to the New Node.  Then try registering the agent from ambari UI again.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 15:03:52 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-03-13T15:03:52Z</dc:date>
    <item>
      <title>not able to register host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185251#M75720</link>
      <description>&lt;P&gt;host registration with ambari getting failed .&lt;/P&gt;&lt;P&gt;I am setting single node cluster , I am not able to do ssh to same node . I am following below steps on the same :&lt;/P&gt;&lt;P&gt;1. ssh-keygen&lt;/P&gt;&lt;P&gt;2. cat id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;/P&gt;&lt;P&gt;3. chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys&lt;/P&gt;&lt;P&gt;but when i do ssh host.FQDN it gives below error :&lt;/P&gt;&lt;P&gt;The authenticity of host  can't be established.&lt;/P&gt;&lt;P&gt;Permission denied (publickey,gssapi-keyex,gssapi-with-mic).&lt;/P&gt;&lt;P&gt;please help on this.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:55:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185251#M75720</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-03-13T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: not able to register host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185252#M75721</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the ambari server host you need to do this:&lt;/P&gt;&lt;PRE&gt;# ssh-copy-id -i ~/.ssh/id_rsa.pub  root@newhost.example.com&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The above command will copy the SSH public key from Ambari server host "~/.ssh/id_rsa.pub" to the new host (for example newhost.example.com)  then once you are able to run the command successfully then you should be able to do passwordless ssh from Ambari Serevr host to the New Node.  Then try registering the agent from ambari UI again.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:03:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185252#M75721</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-13T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: not able to register host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185253#M75722</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;executed below command still getting same error :&lt;/P&gt;&lt;P&gt;[root@host .ssh]# ssh-copy-id -i ~/.ssh/id_rsa.pub  root@&amp;lt;host_fqdnt&amp;gt; Permission denied (publickey,gssapi-keyex,gssapi-with-mic).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:27:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185253#M75722</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-03-13T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: not able to register host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185254#M75723</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please do the following check? Then we will check  about Password less ssh.&lt;/P&gt;&lt;P&gt;1. Please check if SSH itself is possible from AmbariServer host to NewHost or not?&lt;/P&gt;&lt;PRE&gt;# ssh root@&amp;lt;host_fqdn&amp;gt;&lt;/PRE&gt;&lt;P&gt;2. If above is not working then you will need to see if the new host has the proper SSH settings and it allows the password based authentication? So on the new node please check if the "PasswordAuthentication" is set as "yes" and the "PermitRootLogin" is set to  "yes"&lt;/P&gt;&lt;PRE&gt;# grep 'PasswordAuthentication' /etc/ssh/sshd_config
PasswordAuthentication yes

# grep 'Root' /etc/ssh/sshd_config
PermitRootLogin yes
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If these values are not set to "yes" then please set them and then restart the SSHD service on the new host.&lt;/P&gt;&lt;PRE&gt;# systemctl restart sshd
(OR)
# service sshd restart&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;3. Now from ambari server host check if you are able to do SSH with password or not?    If ssh works then try doing the passwordless ssh using:&lt;/P&gt;&lt;PRE&gt;# ssh-copy-id -i ~/.ssh/id_rsa.pub  root@newhost.example.com&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:35:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185254#M75723</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-13T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: not able to register host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185255#M75724</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If this also does not work then please try this:&lt;/P&gt;&lt;P&gt;On the ambari server host regenerate the ssh keys exactly as following:&lt;/P&gt;&lt;P&gt;1. Move the old SSH keys directory (take backup as following)&lt;/P&gt;&lt;PRE&gt;# mv  ~/.ssh   ~/.ssh_OLD&lt;/PRE&gt;&lt;P&gt;2. Regenerate the SSH keys on ambari server host  without entering any passphrase.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE : Just press enter when it asks for passphrase  (please do not enter any value there)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: &lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;3. Now from ambari server host check if you are able to do SSH with 
password or not?    If ssh works then try doing the passwordless ssh 
using:&lt;/P&gt;&lt;PRE&gt;# ssh-copy-id -i ~/.ssh/id_rsa.pub  root@newhost.example.com&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:42:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185255#M75724</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-13T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: not able to register host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185256#M75725</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks jay, It is working now .&lt;/P&gt;&lt;PRE&gt;PasswordAuthentication yes&lt;/PRE&gt;&lt;P&gt;it's value was set to no&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:07:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-register-host/m-p/185256#M75725</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-03-13T16:07:13Z</dc:date>
    </item>
  </channel>
</rss>

