<?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 Not able to Setup passwordless ssh for ambari installation. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294488#M217285</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to do a passwordless ssh login to my &lt;STRONG&gt;localhost&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I tried the following steps many times but it asks for password when i try "&lt;STRONG&gt;ssh localhost&lt;/STRONG&gt;".&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;1. ssh-keygen&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;2.&amp;nbsp;cat ~/.ssh/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;3.&amp;nbsp;chmod 700 ~/.ssh&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;4.&amp;nbsp;chmod 600 ~/.ssh/authorized_keys&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is screenshot of my terminal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-04-22 11-47-50.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27209iD16FE11D2A5A6DA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-04-22 11-47-50.png" alt="Screenshot from 2020-04-22 11-47-50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried the same steps to login from &lt;STRONG&gt;localhost&lt;/STRONG&gt; to &lt;STRONG&gt;udhav.fqdn.com&lt;/STRONG&gt;, but even now it promts me for password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the second case i followed steps provided in this link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/" target="_blank" rel="noopener"&gt;https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I guess i am doing small mistake. Can anyone help me with this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 06:35:03 GMT</pubDate>
    <dc:creator>Udhav</dc:creator>
    <dc:date>2020-04-22T06:35:03Z</dc:date>
    <item>
      <title>Not able to Setup passwordless ssh for ambari installation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294488#M217285</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to do a passwordless ssh login to my &lt;STRONG&gt;localhost&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I tried the following steps many times but it asks for password when i try "&lt;STRONG&gt;ssh localhost&lt;/STRONG&gt;".&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;1. ssh-keygen&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;2.&amp;nbsp;cat ~/.ssh/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;3.&amp;nbsp;chmod 700 ~/.ssh&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco,monospace"&gt;4.&amp;nbsp;chmod 600 ~/.ssh/authorized_keys&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is screenshot of my terminal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-04-22 11-47-50.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27209iD16FE11D2A5A6DA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-04-22 11-47-50.png" alt="Screenshot from 2020-04-22 11-47-50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried the same steps to login from &lt;STRONG&gt;localhost&lt;/STRONG&gt; to &lt;STRONG&gt;udhav.fqdn.com&lt;/STRONG&gt;, but even now it promts me for password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the second case i followed steps provided in this link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/" target="_blank" rel="noopener"&gt;https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I guess i am doing small mistake. Can anyone help me with this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 06:35:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294488#M217285</guid>
      <dc:creator>Udhav</dc:creator>
      <dc:date>2020-04-22T06:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Setup passwordless ssh for ambari installation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294511#M217294</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/76902"&gt;@Udhav&lt;/a&gt;&amp;nbsp;You need to set the hostname to the fqdn (not localhost), map the hostname in /etc/hosts/, generate the ssh-keys, add keys to authorized_keys, and login. &amp;nbsp; Thats it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is full output of the above steps. &amp;nbsp;Please note the vagrant vm I use already has ssh setup, but I did it again (you will notice 2 keys in authorized_keys).&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;[root@c7401 ~]# hostname c7401.ambari.apache.org&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# hostname -f&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c7401.ambari.apache.org&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# cat /etc/hosts | grep c7401&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;192.168.74.101 &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;c7401&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.ambari.apache.org &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;c7401&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# ssh-keygen&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Generating public/private rsa key pair.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter file in which to save the key (/root/.ssh/id_rsa):&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter passphrase (empty for no passphrase):&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enter same passphrase again:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your identification has been saved in /root/.ssh/id_rsa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# cat ~/.ssh/id_rsa.pub&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbUBYPL9JcoThQ5HWjZLpaHPEd3UlQaPcxzs1p08+pmWc6Q8JT+SGJ4G9087sDMnO1HsutzaoRchlTVN8AN1p7bg9mSnUVGYBSfrmz9dNiYujBCmEnymEB2qn30u3YncFE8um+fQRafrkcMTGwTfclB1CU9mP4FZEIW0+fWBqHBnR3mmkaVUAUgVATLTKIw8dMngDTRG9zVS6HVEpMPQYXl6mK5Oq0XLq31AZpYb7Fia4plw2mK7wQLUxxc0dSa7NQ3bzvr+lO3LRzEaAVvk4ZlqXddX23Z8PpsX7ZhS8lnQn4sojH82+BndVUO9N8VzS3LxzSAjmAThEDC47eXQyV root@c7401.ambari.apache.org&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# cat ~/.ssh/id_rsa.pub &amp;gt;&amp;gt; ~/.ssh/authorized_keys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# cat ~/.ssh/authorized_keys&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbUBYPL9JcoThQ5HWjZLpaHPEd3UlQaPcxzs1p08+pmWc6Q8JT+SGJ4G9087sDMnO1HsutzaoRchlTVN8AN1p7bg9mSnUVGYBSfrmz9dNiYujBCmEnymEB2qn30u3YncFE8um+fQRafrkcMTGwTfclB1CU9mP4FZEIW0+fWBqHBnR3mmkaVUAUgVATLTKIw8dMngDTRG9zVS6HVEpMPQYXl6mK5Oq0XLq31AZpYb7Fia4plw2mK7wQLUxxc0dSa7NQ3bzvr+lO3LRzEaAVvk4ZlqXddX23Z8PpsX7ZhS8lnQn4sojH82+BndVUO9N8VzS3LxzSAjmAThEDC47eXQyV root@c7401.ambari.apache.org&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[root@c7401 ~]# ssh root@c7401.ambari.apache.org&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The authenticity of host 'c7401.ambari.apache.org (192.168.74.101)' can't be established&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ECDSA key fingerprint is SHA256:mjGym7gkqWjPvW2JXhKjqWl4XC6wuhgNIukldSVtkFk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ECDSA key fingerprint is MD5:b7:d4:73:92:03:69:ae:63:af:69:19:96:51:2b:bc:de.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you want to continue connecting (yes/no)? yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Warning: Permanently added 'c7401.ambari.apache.org,192.168.74.101' (ECDSA) to the list of known hosts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Last login: Wed Apr 22 11:21:57 2020&lt;/SPAN&gt;&lt;/PRE&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, 22 Apr 2020 11:26:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294511#M217294</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-04-22T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Setup passwordless ssh for ambari installation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294513#M217296</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;after this will i be able to use the hostname as a target host while creating a cluster in ambari?&lt;/P&gt;&lt;P&gt;And also i am using ubuntu 18.04.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:36:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294513#M217296</guid>
      <dc:creator>Udhav</dc:creator>
      <dc:date>2020-04-22T11:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Setup passwordless ssh for ambari installation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294516#M217299</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/76902"&gt;@Udhav&lt;/a&gt;&amp;nbsp; Yes. &amp;nbsp;Once you complete the rest of the node readiness (install repos, ambari-server, ambari-agent) you would visit &lt;A href="http://[fqdn]:8080" target="_blank"&gt;http://[fqdn]:8080&lt;/A&gt;&amp;nbsp;and begin rest of cluster install via Ambari.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 12:11:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294516#M217299</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-04-22T12:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Setup passwordless ssh for ambari installation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294517#M217300</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 12:14:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-Setup-passwordless-ssh-for-ambari-installation/m-p/294517#M217300</guid>
      <dc:creator>Udhav</dc:creator>
      <dc:date>2020-04-22T12:14:00Z</dc:date>
    </item>
  </channel>
</rss>

