linux普通用户免密码登陆不成功,日志提示Authentication refused: bad ownership or modes

来源:互联网 发布:天津教研室网络平台 编辑:程序博客网 时间:2024/06/03 15:58

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

0 0
原创粉丝点击