linux的两天机器间设置免密码登陆,使用ssh-keygen -t rsa ,具体方法上网查找。
今天主要想记录普通用户设置后不成功的问题,我用root的用户能够成功。
tail -10f /var/log/secure
有日志打印:Authentication refused: bad ownership or modes for file /home/xxxxxx/.ssh/authorized_keys
解决方法:chmod 600 /home/hadoop/.ssh/authorized_keys