<?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: Configuring passphraseless problem in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112364#M54779</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;@Aruna Sameera
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You do not need to copy ssh keys from  "hadoop" user to "aruna".&lt;/P&gt;&lt;P&gt;Which user you want to use in order to start Hadoop?    "aruna" or "hadoop"&lt;/P&gt;&lt;P&gt;When you run the "ssh-keyhen" command then by default it send the keys to the  "/home/&amp;lt;username&amp;gt;/.ssh" directory.&lt;/P&gt;&lt;P&gt;Also  "&lt;/P&gt;&lt;PRE&gt;$HOME/aruna/.ssh/authorized_keys   &amp;lt;== means ==&amp;gt;  /user/aruna/aruna/.ssh/authorized_keys&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;Because $HOME itself is  "/user/&amp;lt;username&amp;gt;"   , Here username  will be replaced by the name of the logged in user who is running the command.&lt;/P&gt;&lt;P&gt;.
&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 20:02:21 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-02-17T20:02:21Z</dc:date>
    <item>
      <title>Configuring passphraseless problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112361#M54776</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I tried to create passphraseless SSH as mention in below link.
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learninghadoopblog.wordpress.com/2013/08/03/hadoop-0-23-9-single-node-setup-on-ubuntu-13-04/"&gt;https://learninghadoopblog.wordpress.com/2013/08/03/hadoop-0-23-9-single-node-setup-on-ubuntu-13-04/&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;hadoop@aruna:~$ pwd
/home/hadoop
hadoop@aruna:~$ ls -al
total 40
drwxr-xr-x 2 hadoop hadoopgroup 4096 Feb 17 17:56 .
drwxr-xr-x 5 root  root  4096 Feb 17 17:53 ..
-rw-r--r-- 1 hadoop hadoopgroup  220 Feb 17 17:53 .bash_logout
-rw-r--r-- 1 hadoop hadoopgroup 3771 Feb 17 17:53 .bashrc
-rw-r--r-- 1 hadoop hadoopgroup 8980 Feb 17 17:53 examples.desktop
-rw------- 1 hadoop hadoopgroup 1679 Feb 17 17:56 Hadoop_RSA_KeyPair
-rw-r--r-- 1 hadoop hadoopgroup  394 Feb 17 17:56 Hadoop_RSA_KeyPair.pub
-rw-r--r-- 1 hadoop hadoopgroup  655 Feb 17 17:53 .profile
hadoop@aruna:~$ 
&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;&lt;STRONG&gt;I followed two steps as mention above link.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;STRONG&gt;But when i try to &lt;CODE&gt;Write the public key file for the generated RSA key into the authorized_key fil &lt;/CODE&gt; it gives me issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# Write the public key file for the generated RSA key into the authorized_key file
$ cat $HOME/.ssh/id_rsa.pub &amp;gt;&amp;gt; $HOME/.ssh/authorized_keys&lt;/PRE&gt;&lt;P&gt;This is the issue.It says there is no such file or directory.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hadoop@aruna:~$ cat Hadoop_RSA_KeyPair.pub &amp;gt;&amp;gt; $HOME/aruna/.ssh/authorized_keys
-su: /home/hadoop/aruna/.ssh/authorized_keys: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:22:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112361#M54776</guid>
      <dc:creator>asliyanage</dc:creator>
      <dc:date>2017-02-17T19:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring passphraseless problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112362#M54777</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;@Aruna Sameera
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;First you will have to generate the "ssh-keys"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:  (&lt;/STRONG&gt;Use all default values ... keep pressing enter with the "ssh-key" command.) I mean empty passphrase.&lt;/P&gt;&lt;PRE&gt;$ ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jay/.ssh/id_rsa): 
Created directory '/home/jay/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/jay/.ssh/id_rsa.
Your public key has been saved in /home/jay/.ssh/id_rsa.pub.
The key fingerprint is:
a1:70:20:75:52:aa:c6:0c:66:1e:c5:e6:61:11:91:43 jay@erie1.example.com
The key's randomart image is:
+--[ RSA 2048]----+
|  ..o ...+E+     |
|   . o=.o =      |
|    .+.A.o o     |
|     o..*.o      |
|      . Ao       |
|                 |
|                 |
|                 |
|                 |
+-----------------+

&lt;/PRE&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The easiest approach will be to use the "ssh-copy-id" command:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;ssh-copy-id -i ~/.ssh/id_rsa.pub localhost
ssh-copy-id -i ~/.ssh/id_rsa.pub kerbambari1.example.com
ssh-copy-id -i ~/.ssh/id_rsa.pub kerbambari2.example.com
ssh-copy-id -i ~/.ssh/id_rsa.pub kerbambari3.example.com
ssh-copy-id -i ~/.ssh/id_rsa.pub kerbambari4.example.com&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:26:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112362#M54777</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T19:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring passphraseless problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112363#M54778</link>
      <description>&lt;P&gt;&lt;STRONG&gt;my .ssh folder is located in /home/aruna$ folder.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Hadoop_RSA_KeyPair.pub file is located in  /home/hadoop folder.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So i try to copy  key file from /home/hadoop to  /home/aruna/.ssh folder as  shown below.
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hadoop@aruna:~$ ssh-copy-id -i  Hadoop_RSA_KeyPair.pub $HOME/aruna/.ssh/authorized_keys
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "Hadoop_RSA_KeyPair.pub"
mktemp: failed to create file via template ‘/home/hadoop/.ssh/ssh-copy-id_id.XXXXXXXXXX’: No such file or directory
/usr/bin/ssh-copy-id: ERROR: mktemp failed

&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But it gives me error?
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:46:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112363#M54778</guid>
      <dc:creator>asliyanage</dc:creator>
      <dc:date>2017-02-17T19:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring passphraseless problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112364#M54779</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;@Aruna Sameera
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You do not need to copy ssh keys from  "hadoop" user to "aruna".&lt;/P&gt;&lt;P&gt;Which user you want to use in order to start Hadoop?    "aruna" or "hadoop"&lt;/P&gt;&lt;P&gt;When you run the "ssh-keyhen" command then by default it send the keys to the  "/home/&amp;lt;username&amp;gt;/.ssh" directory.&lt;/P&gt;&lt;P&gt;Also  "&lt;/P&gt;&lt;PRE&gt;$HOME/aruna/.ssh/authorized_keys   &amp;lt;== means ==&amp;gt;  /user/aruna/aruna/.ssh/authorized_keys&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;Because $HOME itself is  "/user/&amp;lt;username&amp;gt;"   , Here username  will be replaced by the name of the logged in user who is running the command.&lt;/P&gt;&lt;P&gt;.
&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:02:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112364#M54779</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-02-17T20:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring passphraseless problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112365#M54780</link>
      <description>&lt;P&gt;@jen SenSharma&lt;/P&gt;&lt;P&gt;1) Since i am currently using "aruna" username its better if i can use same for all the things in hadoop also.&lt;/P&gt;&lt;P&gt; actually this all starts when i try to start DFS demon. The it keep asking below thin.&lt;/P&gt;&lt;PRE&gt;The authenticity of host 'localhost (127.0.0.1)' can't be 
established. ECDSA key fingerprint is 
SHA256:AlJLUiaOyWSm5W3+VAi1hDfgpFvZeLOMU6a4lviRojE. Are you sure you 
want to continue connecting (yes/no)?&lt;/PRE&gt;&lt;P&gt;Then I followed steps in below link to &lt;STRONG&gt;Configuring passphraseless SSH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learninghadoopblog.wordpress.com/2013/08/03/hadoop-0-23-9-single-node-setup-on-ubuntu-13-04/" target="_blank"&gt;https://learninghadoopblog.wordpress.com/2013/08/03/hadoop-0-23-9-single-node-setup-on-ubuntu-13-04/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I  completed first 2 steps. Third step is as below&lt;/P&gt;&lt;PRE&gt;# Write the public key file for the generated RSA key into the authorized_key file
$ cat $HOME/.ssh/id_rsa.pub &amp;gt;&amp;gt; $HOME/.ssh/authorized_keys
&lt;/PRE&gt;&lt;P&gt;2) So when i try to complete it gives me error . Still i am unable to complete the above step.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:52:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112365#M54780</guid>
      <dc:creator>asliyanage</dc:creator>
      <dc:date>2017-02-17T20:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring passphraseless problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112366#M54781</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16133/asliyanage.html" nodeid="16133"&gt;@Aruna Sameera&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;What is the error you get?  Can you ls -l $HOME/.ssh/id-rsa.pub ?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2017 12:46:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Configuring-passphraseless-problem/m-p/112366#M54781</guid>
      <dc:creator>jwhitmore</dc:creator>
      <dc:date>2017-02-19T12:46:00Z</dc:date>
    </item>
  </channel>
</rss>

