Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Not able to Setup passwordless ssh for ambari installation.

avatar
Rising Star

Hello,

I want to do a passwordless ssh login to my localhost.

I tried the following steps many times but it asks for password when i try "ssh localhost".

1. ssh-keygen

2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

3. chmod 700 ~/.ssh

4. chmod 600 ~/.ssh/authorized_keys

This is screenshot of my terminal.

Screenshot from 2020-04-22 11-47-50.png

I tried the same steps to login from localhost to udhav.fqdn.com, but even now it promts me for password. 

For the second case i followed steps provided in this link.

https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

I guess i am doing small mistake. Can anyone help me with this?

Thank you.

 

 

1 ACCEPTED SOLUTION

avatar
Super Guru
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Super Guru
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Rising Star

@stevenmatison after this will i be able to use the hostname as a target host while creating a cluster in ambari?

And also i am using ubuntu 18.04.

Thank you

avatar
Super Guru

@Udhav  Yes.  Once you complete the rest of the node readiness (install repos, ambari-server, ambari-agent) you would visit http://[fqdn]:8080 and begin rest of cluster install via Ambari.

avatar
Rising Star

@stevenmatison Thank you very much!