I'm trying to set up passwordless ssh between root accounts in 16.04 (needed for Hadoop installs).
I set up a password for root by sudo su - root
and passwd
.
When I try e.g.
ssh -l root slave3
or ssh-copy-id -i $HOME/.ssh/id_rsa_root.pub root@master
I get
Permission denied, please try again.
I have tried all the advice I can find i.e. making the following edits (one at a time) to /etc/ssh/sshd_config:
PermitRootLogin without-password
PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
#StrictModes yes
UsePAM no
AllowUsers root hduser
Followed by sudo service ssh reload
after each, but still I get permission denied. Any help is much appreciated.
ufw
or any other firewall on any of the machines? Then make sure port 22 is open for in and out communication.