Isilon:OneFS:錯誤 - 嘗試透過 SSH 連線至叢集時,「驗證遭拒:目錄 /ifs/home/user/.ssh 的擁有權或模式錯誤」

Summary: Isilon:OneFS:在嘗試透過 SSH 連線至叢集時,出現錯誤「Authentication refused: bad ownership or modes for directory /ifs/home/user/.ssh」

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms



 

 

使用者無法透過 SSH 連線連線至叢集。

 

當使用者嘗試透過 SSH 連線連線至叢集時,會出現下列症狀:
  • 出現下列錯誤:
     
    Authentication refused: bad ownership or modes for directory /ifs/home/user/.ssh
    此相同的錯誤也會記錄到 /var/log/auth.log 檔案。
  • 即使正在使用 authorized_keys 檔案,系統仍會提示使用者輸入密碼。

Cause

 

錯誤「Authentication refused: bad ownership or modes for directory」通常代表使用者的主要~/.ssh 目錄具有群組寫入權限。主要目錄只能由使用者或擁有者寫入,~/.ssh權限應設為 700,且 authorized_keys 檔案權限應設為 600

Resolution

 

修改使用者指定目錄上的權限。一般建議您在 /ifs/home/user/.ssh/directory 上擁有 750 個權限,在 authorized_keys 檔案上 644 個權限;但是這些值可能不夠用,且需要更多限制性權限。

  1. 在叢集的任何節點上開啟 SSH 連線,然後使用「root」帳戶登入。
  2. 執行以下命令,將使用者 的主 目錄更改為僅由該使用者寫入,其中 <使用者名> 是使用者名:

    chmod g-w /home/<user name>
     
  3. 更改使用者 的 ~/.ssh 目錄上的許可權,其中 <使用者名> 是使用者名:

    chmod 700 /home/<user name>/.ssh
     
  4. 變更使用者 authorized_keys 檔上的權限,其中 <使用者名> 是使用者名:

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

    便條
    authorized_keys 檔案應該歸擁有者所有,而不是「root」。

Additional Information

其他資訊

請參閱知識庫文章如何設定按鍵式 RSA SSH 登入16474

Affected Products

Isilon

Products

Isilon
Article Properties
Article Number: 000061728
Article Type: Solution
Last Modified: 24 Sep 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.