Support Questions

Find answers, ask questions, and share your expertise

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

avatar
Explorer

I am setting up Ambari.

After I give localhost.localdomain for FQDN and specify the Key.. I get following error:

~~~~~~~~~~~~~Copy from the screem~~~~~

========================== Creating target directory... ========================== Command start time 2016-07-25 09:58:07 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). SSH command execution finished host=localhost.localdomain, exitcode=255 Command end time 2016-07-25 09:58:10 ERROR: Bootstrap of host localhost.localdomain fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). STDOUT: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

~~~~~~~~~~~~~~~~~~~~~~~~

What I maybe doing wrong?

9 REPLIES 9

avatar
@Sumit Agrawal

The issue is with ssh and keygen. Please verify if you are able to login to the machine without password as ssh.

avatar
Explorer

I am able to login "ssh admin@localhost" without giving any password

avatar
Explorer

I am able to login without password, please refer attached image.

6038-localhost.jpg

avatar

avatar
Explorer

@Artem Ervits, @Sindhu

I am able to do everything as per other article but still getting error. Please see attach

6062-localhost.jpg

6063-02-ssh-localhost.jpg

ed images.

avatar
Master Guru
@Sumit Agrawal

Is this a single node cluster? I can see that you are getting error related to ssh while bootstrapping ambari agent. Is there any reason why are you using localhost.localdomain? do you have localhost.localdomain entry in your /etc/hosts file which is pointing to 127.0.0.1 ? I would suggest double check your /etc/hosts file.

avatar
Explorer

Yes, I just verified the entry is there.

avatar

Is the issue resolved?

avatar

Delete the .ssh folder. Create the new key and try it again.

One more suggestion Check the status selinux if it is not disable then you have to disable it or run following command "restorecon -R .ssh" and try to do ssh.