Connectrix Brocade B-Series:使用私密/公開金鑰登入 SSH 失敗,無法匯入公開金鑰
Summary: 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 以私密/公鑰對登入交換器時會失敗並提示您輸入密碼。
Error:
Failed to import public key.
Cause
如果公鑰匯入至執行 Fabric OS v7.4.1d、v8.0.1、v8.0.1a 或 v8.0.1b 的交換器,則與檔案相關聯的使用者對檔案的檔案權限會變更為無法讀取。
Brocade DEFECT000616486
Resolution
定:
升級到 Fabric OS 7.4.1e 和 Fabric OS 8.0.2 或更高版本。
因應措施:
-
以 root 使用者身分登入,並使用 chmod 將公開金鑰的權限變更為 644
-
chmod 644 /fabos/users/admin/.ssh/authorized_keys.*如果問題仍然存在,請按照下列步驟操作:
- 確認「authorized_keys.admin」(唯一一個)已具有 644 權限:
switch:root> ls -pal /fabos/users/admin/.ssh total 32 drwxr-xr-x 2 root admin 4096 Mar 29 11:20 ./ drwxr-xr-x 3 root admin 4096 Mar 23 09:48 ../ -rw-r--r-- 1 root root 10240 Mar 28 09:21 authorizedKeys.tar -rw-r--r-- 1 root admin 759 Mar 28 09:21 authorized_keys -rw-r--r-- 1 root admin 759 Mar 28 09:21 authorized_keys.admin -rw-r--r-- 1 root admin 134 Feb 1 01:01 environment
- 使用以下程序,使用交換器的「root」存取權限,將管理員的公開金鑰手動複製到所需的位置:
在主機上為使用者管理員建立公鑰檔後,例如:switch:root> /home/admin/.ssh/id_dsa.pub
使用下列命令,從主機將公開金鑰所在主機安全複製 (SCP) 到交換器 - 其中交換器 IP 位址如下為 xx.xx.xx.xx。scp ~/.ssh/id_dsa.pub root@xx.xx.xx.xx:/fabos/users/admin/.ssh/authorized_keys scp ~/.ssh/id_dsa.pub root@xx.xx.xx.xx:/fabos/users/admin/.ssh/authorized_keys.admin
注意:使用 scp 存取交換器的權限為 root@xx.xx.xx.xx
- 確認「authorized_keys.admin」(唯一一個)已具有 644 權限:
Brocade DEFECT000616486
Affected Products
ConnectrixProducts
Connectrix, Connectrix B-Series HardwareArticle Properties
Article Number: 000064822
Article Type: Solution
Last Modified: 07 Oct 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.