This question already has an answer here:
I have tried everything and i have been on this for two days, no progress.
i can access the same server (hadoopmaster) but when i try to copy the key or ssh into the slave (hadoopslave-1) i get the permission denied (publickey) error. Am here to get help.
Because i want to make them to be able to ssh into each other one namenode and two datanodes , i have already installed ambari and trying to setup on ambari on the cluster. First image screenshot
i used ssh -i ~/.ssh/id_rsa -v email@example.com
Also tried to copy key but same error message ssh-copy-id -i $HOME/.ssh/id_rsa.pub ubuntu@hadoopslave-1