Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) during ambari hadoop installation Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) during ambari hadoop installation hadoop hadoop

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) during ambari hadoop installation


I encountered the same problem with him.

ssh -i <your_keypair> root@<your_host>I tried this but it wasn't solved.

Here's my solution

host1 ip:192.168.1.21

host2 ip:192.168.1.22

host3 ip:192.168.1.23

on host1:

rm -rf /root/.sshssh-keygen -t dsacat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keysscp /root/.ssh/id_dsa.pub host2:/root/scp /root/.ssh/id_dsa.pub host3:/root/

on host2:

rm -rf /root/.sshssh-keygen -t dsacat /root/id_dsa.pub >> /root/.ssh/authorized_keys

on host3:

rm -rf /root/.sshssh-keygen -t dsacat /root/id_dsa.pub >> /root/.ssh/authorized_keys

host1:/root/.ssh/id_dsa This's the file which you need.


You should be able to execute something like

ssh -i <your_keypair> root@<your_host>

from some other host. If this is not working, then you are using wrong keypair.


I had exactly the same message but it turned out the problem was user error. I had been uploading the public key to the Ambari installer, rather than the private key.