Support Questions
Find answers, ask questions, and share your expertise

Problem encountered while creating localhost Ambari server in Ubuntu 16

Problem encountered while creating localhost Ambari server in Ubuntu 16

New Contributor

When I am trying to register my host I am getting this problem

==========================
Creating target directory...
==========================

Command start time 2018-06-26 11:47:20

Permission denied (publickey).
SSH command execution finished
host=infinitylab-optiplex-3050, exitcode=255
Command end time 2018-06-26 11:47:21

ERROR: Bootstrap of host infinitylab-optiplex-3050 fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Permission denied (publickey).

STDOUT:
Permission denied (publickey).

My /etc/hosts file look like this:

127.0.0.1 localhost
127.0.1.1 infinitylab-optiplex-3050
192.168.136.105 infinitylab-optiplex-3050
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

If anybody can please help

2 REPLIES 2

Re: Problem encountered while creating localhost Ambari server in Ubuntu 16

Explorer

Clearly a problem with ssh key. Please use the correct key available for the host with correct permission(400) set on that.

Re: Problem encountered while creating localhost Ambari server in Ubuntu 16

Mentor

@Gaurav Patel

Can you remove or comment out the second line in your /etc/hosts

# 127.0.1.1 infinitylab-optiplex-3050

And retry