1.ssh免密码访问配置失败
ssh-keygen -t rsa
cd ~/.ssh/
cat id_rsa.pub >> authorized_keys
cat id_rsa.pub >> authorized_keys
chmod 600 authorized_keys
访问仍需密码 用root tail -f /var/log/secure
tail -f /var/log/secure
May 10 04:25:20 li414-132 sshd[22586]: Authentication refused: bad ownership or modes for directory /home/xwm
可以看见是/home/xwm的权限问题
chmod 700 /home/xwm