sshd配置文件没问题;
目录权限设置也没问题;
但是 ssh -vvv 提示:
debug3: no such identity: /Users/user/.ssh/id_rsa,/Users/user/.ssh/id_dsa: No such file or directory
之后查看,auth.log发现:
sshd[18063]: Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys
查看authorized_keys的owner不对,修改即可。
时间: 2024-10-10 14:39:00