SSH connection issue Cloudera Manager on Google Compute Engine

528 views Asked by At

I have installed Cloudera Manager on a Google Compute Engine VM and successfully logged in to CM. I am trying to create a 3 node Hadoop (YARN) cluster there. However, on the ssh credentials page, where I am providing my username without password, the process is failing (error: Exhausted available authentication methods).

I tried creating password less ssh login manually. Created the id_rsa and copied id_rsa.pub to authorized_host. I was able to ssh to the same machine but not to other machine (I did copy the instance-1 id_rsa.pub to the instance-2's authorized_keys).

2

There are 2 answers

0
rajnandy On BEST ANSWER

Turns out that PasswordAuthentication was set to no in the ssh config (/etc/ssh/sshd_config). So while doing ssh it was not checking for password authentication hence did not ask for password. Changing this to yes solved my problem.

3
Misha Brukman On

TL;DR: I have made a GitHub repo which has scripts to build images with Cloudera Manager preinstalled which you might want to consider using.

By default, GCE OS images only support public-key SSH authentication, not password, so if you want to use password, you have to modify /etc/ssh/sshd_config to allow this; see this script for details on how.

As an alternative, you can also deploy Cloudera Director on GCE which will properly configure your instances and install Cloudera Manager for you.