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不对,修改即可。

相关文章:

  • 2022-12-23
  • 2022-03-06
  • 2021-06-08
  • 2021-11-22
  • 2021-11-24
  • 2022-12-23
  • 2021-07-28
  • 2021-12-14
猜你喜欢
  • 2021-07-25
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-12-20
相关资源
相似解决方案