<?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 Permission denied (publickey,gssapi-keyex,gssapi-with-mic) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-publickey-gssapi-keyex-gssapi-with-mic/m-p/184052#M80721</link>
    <description>&lt;P&gt;I am installing single node cluster but I am getting the  Permission denied (publickey,gssapi-keyex,gssapi-with-mic) .&lt;/P&gt;&lt;P&gt;however I have set &lt;/P&gt;&lt;PRE&gt;PasswordAuthentication yes
PermitRootLogin yes 
in the /etc/ssh/sshd_config 
service sshd restart&lt;/PRE&gt;&lt;P&gt;i have done below steps from root :&lt;/P&gt;&lt;PRE&gt;selinux=disabled
service iptables stop
service ip6tables stop
chkconfig iptables off 
chkconfig ip6tables off 
service ntpd start
chkconfig ntpd on
ssh-keygen -t rsa
cd .sshcat id_rsa &amp;gt;&amp;gt; authorized_keys
chmod 700 ~/.ssh&lt;/PRE&gt;&lt;P&gt;when i try to &lt;/P&gt;&lt;PRE&gt;[root@instance-5 .ssh]# ssh host
root@104.196.221.168's password:&lt;/PRE&gt;&lt;P&gt;  but earlier trying the same root password on the same host required .&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jul 2018 00:15:03 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2018-07-15T00:15:03Z</dc:date>
    <item>
      <title>Permission denied (publickey,gssapi-keyex,gssapi-with-mic)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-publickey-gssapi-keyex-gssapi-with-mic/m-p/184052#M80721</link>
      <description>&lt;P&gt;I am installing single node cluster but I am getting the  Permission denied (publickey,gssapi-keyex,gssapi-with-mic) .&lt;/P&gt;&lt;P&gt;however I have set &lt;/P&gt;&lt;PRE&gt;PasswordAuthentication yes
PermitRootLogin yes 
in the /etc/ssh/sshd_config 
service sshd restart&lt;/PRE&gt;&lt;P&gt;i have done below steps from root :&lt;/P&gt;&lt;PRE&gt;selinux=disabled
service iptables stop
service ip6tables stop
chkconfig iptables off 
chkconfig ip6tables off 
service ntpd start
chkconfig ntpd on
ssh-keygen -t rsa
cd .sshcat id_rsa &amp;gt;&amp;gt; authorized_keys
chmod 700 ~/.ssh&lt;/PRE&gt;&lt;P&gt;when i try to &lt;/P&gt;&lt;PRE&gt;[root@instance-5 .ssh]# ssh host
root@104.196.221.168's password:&lt;/PRE&gt;&lt;P&gt;  but earlier trying the same root password on the same host required .&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jul 2018 00:15:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-publickey-gssapi-keyex-gssapi-with-mic/m-p/184052#M80721</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-07-15T00:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-publickey-gssapi-keyex-gssapi-with-mic/m-p/184053#M80722</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;I guess the command the following command was incorrectyou are storing Private key instead of Public key file.&lt;/P&gt;&lt;PRE&gt;# cd .ssh
# cat id_rsa &amp;gt;&amp;gt; authorized_keys&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You should be passing the "id_rsa.pub" file instead like following&lt;/P&gt;&lt;PRE&gt;# cd .ssh
# cat id_rsa.pub &amp;gt;&amp;gt; authorized_keys
(OR)
# ssh-copy-id  -i ~/.ssh/id_rsa.pub  $HOST&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Additionally can you please verify if the "hostname" which you are passing to the SSH command is correct? Please run the following command to verify the hostname.&lt;/P&gt;&lt;PRE&gt;# hostname
# hostname -f&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then after verifying the hostname please run the below command.&lt;/P&gt;&lt;PRE&gt;# ssh-copy-id  -i ~/.ssh/id_rsa.pub  $HOST&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jul 2018 07:22:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-publickey-gssapi-keyex-gssapi-with-mic/m-p/184053#M80722</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-07-15T07:22:40Z</dc:date>
    </item>
  </channel>
</rss>

