<?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: how to create password less ssh between two AWS EC2 instances? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109445#M38261</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3134/sanchinakishore.html" nodeid="3134"&gt;@kishore sanchina&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;same mechanism will apply ec2 instances also &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 15:13:49 GMT</pubDate>
    <dc:creator>subhash_parise3</dc:creator>
    <dc:date>2016-08-18T15:13:49Z</dc:date>
    <item>
      <title>how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109442#M38258</link>
      <description>&lt;P&gt;how to create password less ssh between 2 AWS EC2 instances.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 14:02:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109442#M38258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-18T14:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109443#M38259</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3134/sanchinakishore.html" nodeid="3134"&gt;@kishore sanchina&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I assuming both are linux servers. &lt;/P&gt;&lt;P&gt;Please folllow the steps in mentioned url: &lt;A href="http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/" target="_blank"&gt;http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 14:46:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109443#M38259</guid>
      <dc:creator>subhash_parise3</dc:creator>
      <dc:date>2016-08-18T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109444#M38260</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1852/subhashparise36.html" nodeid="1852"&gt;@subhash parise&lt;/A&gt; i know how to create password less ssh in linux. but i dont kown how to create password less ssh in ec2 instances.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 15:10:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109444#M38260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-18T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109445#M38261</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3134/sanchinakishore.html" nodeid="3134"&gt;@kishore sanchina&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;same mechanism will apply ec2 instances also &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 15:13:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109445#M38261</guid>
      <dc:creator>subhash_parise3</dc:creator>
      <dc:date>2016-08-18T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109446#M38262</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3134/sanchinakishore.html"&gt;kishore sanchina&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subash is correct. It is not that different.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pre-reqs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;1. access to your EC2 machine and using the pem key or credentials with root permissions.&lt;/P&gt;&lt;P&gt;2. already setup RSA keys on your local machine. Private key and public key are available at "~/.ssh/id_rsa" and "~/.ssh/id_rsa.pub", respectively.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Login to you EC2 machine as a root user.&lt;/LI&gt;
&lt;LI&gt;Create a new user&lt;PRE&gt;useradd -m &amp;lt;yourname&amp;gt; 
sudo su &amp;lt;yourname&amp;gt;
cd 
mkdir -p ~/.ssh
touch ~/.ssh/authorized_keys
&lt;/PRE&gt;&lt;P&gt;Append contents of file ~/.ssh/id_rsa.pub on you local machine to ~/.ssh/authorized_keys on EC2 machine.&lt;/P&gt;&lt;PRE&gt;chmod -R 700 ~/.ssh
chmod 600 ~/.ssh/*
&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Check whether ssh-ing is permitted by the machine. It should. In /etc/ssh/sshd_config, line containing "PasswordAuthentication yes" is uncommented. Restart sshd service if you make any change in this file:&lt;PRE&gt;service sshd restart # On Centos
service ssh restart # On Ubuntu
&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Your passwordless login should work now. Try following on your local machine:&lt;PRE&gt;ssh -A &amp;lt;yourname&amp;gt;@ec2-xx-xx-xxx-xxx.ap-southeast-1.compute.amazonaws.com
&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Making yourself a super user. Open &lt;CODE&gt;/etc/sudoers&lt;/CODE&gt;. Make sure following two lines are uncommented:&lt;PRE&gt;## Allows people in group wheel to run all commands
%wheel ALL=(ALL)       ALL

## Same thing without a password
%wheel ALL=(ALL)       NOPASSWD: ALL
&lt;/PRE&gt;&lt;P&gt;Add yourself to wheel group.&lt;/P&gt;&lt;PRE&gt;usermod -aG wheel &amp;lt;yourname&amp;gt; &lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Try it and let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 02:05:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109446#M38262</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-08-19T02:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109447#M38263</link>
      <description>&lt;P&gt;Kishore.. enable the below parameter under /etc/ssh/sshd_config&lt;/P&gt;&lt;P&gt;# To disable tunneled clear text passwords, change to no here! &lt;/P&gt;&lt;P&gt;PasswordAuthentication yes&lt;/P&gt;&lt;P&gt;and add the hostnames under /etc/hosts.. then follow the regular ssh procedure.&lt;/P&gt;,&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;to create password less ssh, first enable "authenticationpassword yes" option under /etc/ssh/sshd_config. add hostnames under /etc/hosts . then follow the regular ssh procedure. first check the ping is working from one instance to other or not?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 14:28:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109447#M38263</guid>
      <dc:creator>ajreddy_bana</dc:creator>
      <dc:date>2017-02-20T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109448#M38264</link>
      <description>&lt;P&gt;Hi how can i do the same with a local system running Windows?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 20:25:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109448#M38264</guid>
      <dc:creator>bon_d</dc:creator>
      <dc:date>2017-07-26T20:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109449#M38265</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/24169/bon-d.html" nodeid="24169"&gt;@David Bon-Salomon
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html" target="_blank"&gt;http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/24169/bon-d.html" nodeid="24169"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109449#M38265</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-26T22:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109450#M38266</link>
      <description>&lt;P&gt;Thanks @Jay SenSharma. I used this document but I can't achieve what I want to do : setup password-less SSH between my EC2 instances running RHEL7 from my local machine running Windows. I've open a new thread (&lt;A href="https://community.hortonworks.com/questions/115034/nifi-installation-with-ambari-how-do-i-setup-a-pas.html"&gt;here&lt;/A&gt;) to give more details.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:33:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109450#M38266</guid>
      <dc:creator>bon_d</dc:creator>
      <dc:date>2017-07-28T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109451#M38267</link>
      <description>&lt;P&gt;This is probably the best link which I have found on how to setup the passwordless login using ssh-copy-id command on ec-2 instances.&lt;/P&gt;&lt;P&gt;&lt;A href="https://superuser.com/questions/331167/why-cant-i-ssh-copy-id-to-an-ec2-instance" target="_blank"&gt;https://superuser.com/questions/331167/why-cant-i-ssh-copy-id-to-an-ec2-instance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Probably, this might help.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 07:11:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109451#M38267</guid>
      <dc:creator>sandeepksaini</dc:creator>
      <dc:date>2017-11-19T07:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to create password less ssh between two AWS EC2 instances?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109452#M38268</link>
      <description>&lt;P&gt;&lt;A href="https://superuser.com/questions/331167/why-cant-i-ssh-copy-id-to-an-ec2-instance"&gt;https://superuser.com/questions/331167/why-cant-i-ssh-copy-id-to-an-ec2-instance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Go through above link it will help you to findout easily&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:28:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-create-password-less-ssh-between-two-AWS-EC2/m-p/109452#M38268</guid>
      <dc:creator>shahill_shaik</dc:creator>
      <dc:date>2018-06-05T11:28:20Z</dc:date>
    </item>
  </channel>
</rss>

