sshd_config의 StrictModes를 661로 설정하여 서버가 키를 거부하지 않는 이유는 무엇입니까?

sshd_config의 StrictModes를 661로 설정하여 서버가 키를 거부하지 않는 이유는 무엇입니까?

두 대의 서버에 대해 두 개의 SSH 키를 만들었습니다.

하나는 Ubuntu 18.04.3이고 다른 하나는 CentOS 7.7.1908입니다.

저는 퍼티를 이용하여 연결했습니다. Ubuntu 연결에 성공했지만 CentOS가 키를 거부했습니다.

Centos의 Authorized_keys는 우분투의 Authorized_keys와 동일한 패턴을 갖습니다.

-rw-rw-r--  1 danny danny  398  1月  8 09:52 authorized_keys

644CentOS에서는 sshd_config에서 StrictModes의 기본값이 yes 이기 때문에 권한 설정이 필요하다는 것을 알았습니다 600.

chmod 644 ~/.ssh/authorized_keys

그러나 Ubuntu 서버는 우리 키를 거부하지 않았습니다.

내 질문은 두 운영 체제가 파일 모드와 소유권을 다르게 확인하는 것입니까?

======= CentOS /var/log/secure===================

Jan  9 18:33:12 localhost sshd[57020]: Authentication refused: bad ownership or modes for file /home/danny/.ssh/authorized_keys

======ls -ld 추가 //home /home/danny /home/danny/.ssh======

우분투:

danny@danny-ubuntu:~/.ssh$ ls -ld  / /home /home/danny /home/danny/.ssh
drwxr-xr-x 24 root  root  4096  1月  5 21:59 /
drwxr-xr-x  4 root  root  4096  1月  9 13:33 /home
drwxr-xr-x 22 danny danny 4096  1月  9 13:14 /home/danny
drwx------  2 danny danny 4096  1月  9 17:23 /home/danny/.ssh

CentOS:

[danny@localhost .ssh]$ ls -ld  / /home /home/danny /home/danny/.ssh
dr-xr-xr-x. 17 root  root  224  7月 29  2018 /
drwxr-xr-x.  3 root  root   19  7月 29  2018 /home
drwx------. 10 danny danny 240  1月  9 13:12 /home/danny
drwx------.  2 danny danny 150  1月  9 17:23 /home/danny/.ssh

관련 정보