title: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) during ambari hadoop installation
body: <p>I am trying to deploy a hadoop cluster using ambari, but when i select the hostnames with FQDN and proceed to configure I get the permission denied error for ssh.</p>
  
  <p>STEPS:
  1. generated rsa key using ssh-keygen as root.</p>
  
  <ol start="2">
  <li>changed permission for .ssh(700) and authorized_keys(640)</li>
  <li>cat the public key to authorized_keys.</li>
  <li>and copied the public key to all the hosts(authorized_keys) and changed the file permission as above.</li>
  <li>I could ssh passwordless from ambari server host to all the other hosts.</li>
  </ol>
  
  <p>But from ambari is failing to do the hadoop installation with below error.</p>
  
  <pre><code>SSH command execution finished
  host=XXX, exitcode=255
  Command end time 2015-06-23 10:44:07
  
  ERROR: Bootstrap of host XXX fails because previous action finished with non-zero exit code (255)
  ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
  
  STDOUT: 
  Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
  </code></pre>
  
  <p>Please dont mark this question as a duplicate. I could see other questions with same description but none of them mention about the Ambari ssh permission denied error.</p>