客户端debug
ssh -vvv hostname
未发现明显异常
服务端debug
查看日志_/var/log/secure_
sshd[6137]: Authentication refused: bad ownership or modes for directory /root
ll -d /root
drwxr-xr-x. 4 1000 users 4096 Dec 15 15:12 /root
原来是_/root_权限不对
修复
chmod root. /root
chmod
2024-11-07