Isilon: OneFS: Error-"Authentication refused: bad ownership or modes for directory /ifs/home/user/.ssh" when trying to connect to cluster through SSH

요약: Isilon: OneFS: Error-"Authentication refused: bad ownership or modes for directory /ifs/home/user/.ssh" when trying to connect to the cluster through SSH

이 문서는 다음에 적용됩니다. 이 문서는 다음에 적용되지 않습니다. 이 문서는 특정 제품과 관련이 없습니다. 모든 제품 버전이 이 문서에 나와 있는 것은 아닙니다.

증상



 

 

Users are unable to connect to the cluster through an SSH connection.

 

The following symptoms occur when the user attempts to connect to a cluster through an SSH connection:
  • The following error appears:
     
    Authentication refused: bad ownership or modes for directory /ifs/home/user/.ssh
    This same error is also logged to the /var/log/auth.log file.
  • The user is prompted for their password even though an authorized_keys file is being used.

원인

 

The error, "Authentication refused: bad ownership or modes for directory," typically means that the user's home or ~/.ssh directories have group write permissions. The home directory should be writable only by the user or owner, ~/.ssh permissions should be set to 700, and the authorized_keys file permissions should be set to 600.

해결

 

Modify the permissions on the user's specified directories. It is generally recommended to have permissions of 750 on the /ifs/home/user/.ssh/ directory and 644 permissions on the authorized_keys file; however those values might not be sufficient, and more restrictive permissions are needed.

  1. Open an SSH connection on any node in the cluster and log in using the "root" account.
  2. Run the following command to change the user's home directory to be writable only by that user, where <user name> is the user's name:

    chmod g-w /home/<user name>
     
  3. Change the permissions on the user's ~/.ssh directory, where <user name> is the user's name:

    chmod 700 /home/<user name>/.ssh
     
  4. Change the permissions on the user's authorized_keys file, where <user name> is the user's name:

    chmod 600 /home/<user name>/.ssh/authorized_keys

    NOTE
    The authorized_keys file should be owned by the owner and not "root".

추가 정보

Additional information

Refer to the knowledgebase article, How to set up key-based RSA SSH logins, 16474

해당 제품

Isilon

제품

Isilon
문서 속성
문서 번호: 000061728
문서 유형: Solution
마지막 수정 시간: 24 9월 2025
버전:  4
다른 Dell 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.