Cloudera Manager Failed to authenticate : Exhausted available authentication methods

Miraculous picture Miraculous · Oct 17, 2014 · Viewed 13.7k times · Source

I am currently trying to learn how can I install and configure Cloudera before using it.

So I install in VirtualBox, Ubuntu 14.04, Cloudera Manager. I would like to try it on a pseudo single node (only my computer: no cluster).

I manage to finish the installation. Then to Specify hosts for your CDH cluster installation ; localhost 127.0.0.1

My problem is on the "Provide SSH login credentials." step

Root access to your hosts is required to install the Cloudera packages. This installer will connect to your hosts via SSH and log in either directly as root or as another user with password-less sudo/pbrun privileges to become root. Login To All Hosts As: Root

You may connect via password or public-key authentication for the user selected above. Authentication Method: All hosts accept same password
Enter Password:*********
SSH Port: 22

Then Continue button lead to this

Installation failed on all hosts. Installation failed. Failed to authenticate.

"Exhausted available authentication methods"

I tried to reset the root password, didn't change.. I tried to use an other user who had permissions passwordless (not sure i did it right.. but didn't work) I tried to use public key ssh following tutorials with this

 ssh-keygen -t rsa -P ""
 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

But i can't browse the path of id_rsa.pub... because Cloudera Manager doesn't have the permission to acess /.ssh/ :(

I assume I didn't fully understood what is behind this step but there is no tutorial to pass it. Any solution to configure this ?

Thanks for any advice.

Answer

Alex Raj Kaliamoorthy picture Alex Raj Kaliamoorthy · Dec 9, 2015

I had a similar issue and after a lot of research in the internet I managed to fix the problem. Follow the below steps to fix it.

sudo nano /etc/ssh/sshd_config

In the file now look for PermitRootLogin without-password and replace it with this

PermitRootLogin yes

Now restart the ssh service

sudo service ssh restart

retry the installation and it should work. Comment if it has worked and spread the news.