Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

SSH Issue with Ambari 2.1 & Debian 7

Solved Go to solution
Highlighted

SSH Issue with Ambari 2.1 & Debian 7

Guru

Doing the install on Debian7, but we keep running into problems with SSH. Here is the description of issue:

We are able to SSH to all of the instances from the terminal.

But the Host registration in Ambari fails. Please scroll all the way down for the error.

We tried modifying the directory permissions as per our recommended guide and it still did not work.

Looks like Ambari copies the RSA file to a folder under /var/run/ambari-server/bootstrap under a filename called SSHKEY

That file contains the private key. In our case however, the file shows NULL

We are wondering if this may be a glitch on the Ambari side.

########################## ERROR ####################################

INFO:root:BootStrapping hosts ['hou706069.int.cggveritas.com', 'hou706070.int.cggxxx.com', 'hou711069.int.cggxxx.com', 'hou711070.int.cggxxx.com', 'hou706068.int.cggxxx.com'] using /usr/lib/python2.6/site-packages/ambari_server cluster primary OS: debian7 with user 'r oot' sshKey File /var/run/ambari-server/bootstrap/3/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/3 ambari: hou706068.int.cggxxx.com; server_port: 8080; ambari version: 2.1.2; user_run_as: root INFO:root:Executing parallel bootstrap ERROR:root:ERROR: Bootstrap of host hou706070.int.cggxxx.com fails because previous action finished with non-zero exit cod e (255) ERROR MESSAGE: Permission denied (publickey,password).

1 ACCEPTED SOLUTION

Accepted Solutions

Re: SSH Issue with Ambari 2.1 & Debian 7

Using that key and signed into the Ambari Server as 'root', can you SSH to the target hosts from a command line?

If you can't, double check the permissions of the "public" key on the target hosts.

~/.ssh should be 700

and the authorized_keys file should be 600.

2 REPLIES 2

Re: SSH Issue with Ambari 2.1 & Debian 7

@Vedant Jain

Just to confirm, ssh from ambari server to all the host works fine "password less ssh". Correct?

Did you use correct private key in ambari console while installing?

Re: SSH Issue with Ambari 2.1 & Debian 7

Using that key and signed into the Ambari Server as 'root', can you SSH to the target hosts from a command line?

If you can't, double check the permissions of the "public" key on the target hosts.

~/.ssh should be 700

and the authorized_keys file should be 600.

Don't have an account?
Coming from Hortonworks? Activate your account here