先修改以下权限
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
然后再进行ssh远程登陆
如果此时还是需要密码的话
查看下日志
cat /var/log/secure
Authentication refused: bad ownership or modes for directory /home/grid
将 /home/grid 权限修改为 700
chmod 700 /home/grid
此时就OK了
先修改以下权限
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
然后再进行ssh远程登陆
如果此时还是需要密码的话
查看下日志
cat /var/log/secure
Authentication refused: bad ownership or modes for directory /home/grid
将 /home/grid 权限修改为 700
chmod 700 /home/grid
此时就OK了