Created 01-31-2017 07:09 PM
Hi All,
I got below error mes while try to registered host in ambari 2.2
i have install ssh and copy the ssh private key in Host Registration Information
i have copy the public key to >> authorized_key
cat /root/.ssh/id_rsa.pub >>authorized_keys
chmod 700 -R /root/.ssh
chmod 600 /root/.ssh/authorized_keys
Creating target directory... ========================== Command start time 2017-01-31 11:03:04 Permission denied (publickey,password). SSH command execution finished host=ubuntu, exitcode=255 Command end time 2017-01-31 11:03:04 ERROR: Bootstrap of host ubuntu fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Permission denied (publickey,password). STDOUT: Permission denied (publickey,password).
Created 01-31-2017 07:29 PM
@rama
Here it would be best to run the following commands and then verify whether you are able to do Password less ssh without any issue.
Run the following command from ambari-server host:
ssh-copy-id -i /root/.ssh/id_rsa.pub localhost ssh-copy-id -i /root/.ssh/id_rsa.pub agenthost1.example.com ssh-copy-id -i /root/.ssh/id_rsa.pub agenthost1.example.com ssh-copy-id -i /root/.ssh/id_rsa.pub agenthost1.example.com ssh-copy-id -i /root/.ssh/id_rsa.pub agenthost1.example.com
.
Created 02-01-2017 09:29 AM
@Rama
Have you tried to do ssh manually from ambari server to other host?
Created 02-01-2017 09:58 AM
I wanted to install ambari-sever and agent on single machine(standalone).
I have try ssh root@localhost and its working fine..
Created 02-01-2017 10:13 AM
1. Can you please share the "/etc/ssh/sshd_config" file content here ?
2. Checking the "PasswordAuthentication" and "ChallengeResponseAuthentication" will be good.
3. Is your ambari running as "root" user or some other user?
- A Quick Workaround will be to install the Agent Manually as :
Created 02-06-2017 09:16 AM
i am using root user for installing ambari..and i am using only one system for both ambari server and client..
Created 02-01-2017 11:45 AM
@Rama
Delete the .ssh file. And create key again, dont change the permission of folder and create authorized_keys file inside and add public key. Then try to reinstall again.
Also please check your hostname and /etc/hosts file, check iptable and selinux.
Created 02-02-2017 07:09 AM
is issue is resolved?
Created 02-06-2017 09:13 AM
Not yet it is resolved, i was stuck here, i have try all possibilities
1) i have deleted the .ssh file and created again
2) i have disable the iptable
3) i have selinux is disable(not installed)
is there any other option to install with ssh or any suggestion ?
Created 02-08-2017 10:19 AM
Please check your /etc/hosts file. As well as ntp and permission of .ssh folder and all files which is under the .ssh.
One query are you installing the hdp with root user?