赞
踩
此时 ssh localhost也会失败 原因是秘钥没有给自己, 运行ssh-copy-id -i /home/hadoop/.ssh/id_rsa.pub hadoop@localhost即可解决。
ssh localhost
ssh-copy-id -i /home/hadoop/.ssh/id_rsa.pub hadoop@localhost