在学习hadoop时需要用到ssh免密码登陆,我在安装免密码登陆的过程总出现了Permission denied, please try again.的错误,我在网上找了好久的答案,但是都没有找到合适的解决办法,最后询问了老师,指出了我安装时候的错误。详细的参数设置:vim /etc/ssh/sshd_config
PermitRootLogin yes
StrictModes no
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication no
再将PermitRootLogin 改为yes后问题得到了解决。