Connectrix Brocade:無密碼登入交換器 (SSH 驗證)
Summary: OpenSSH 公鑰身份驗證提供無密碼登錄,稱為 SSH 身份驗證,它使用公鑰和私鑰對進行傳入身份驗證。任何管理員使用者都可以執行傳入的 Open 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.
Instructions
配置傳入 SSH 身份驗證:
步驟 1。登錄到遠端主機(下面是在UNIX 伺服器中初始化公鑰的範例)。
在遠端伺服器中生成公鑰。如果伺服器中存在公鑰檔,則可以使用相同的公鑰檔。在 .ssh目錄下尋找現有的公開金鑰,並尋找檔案名稱 id_rsa.pub
如果您使用 root 帳戶登入,則id_rsa.pub檔案可能存在於以下路徑中。/root/.ssh/id_rsa.pub
請遵循以下步驟產生 RSA 和/或 DSA 公開金鑰:
anyuser@mymachine: ssh
anyuser@mymachine: ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/users/anyuser/.ssh/id_rsa ):
Type passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /users/anyuser/.ssh/id_rsa
Your public key has been saved in /users/anyuser/.ssh/id_rsa.pub.
The key fingerprint is: 32:9f:ae:b6:7f:7e:56:e4:b5:7a:21:f0:95:42:5c:d1
anyuser@mymachine
步驟 2將公開金鑰匯入 Brocade 交換器。
以具有管理員權限角色的任何使用者身分登入交換器,並按照以下命令操作:
switch:admin> sshutil importpubkey
Enter user name for whom key is imported: admin
Enter IP address:192.168.38.244
Remote directory:/home/unixuser/.ssh
Enter public key name(must have .pub suffix):id_rsa.pub
Enter login name: unixuser
Password:
Public key is imported successfully.
步驟 3驗證 Brocade SSH 公開金鑰認證
從步驟 2 成功導入公鑰後,下一步是驗證訪問。若要驗證存取權,請使用用來產生 RSA 金鑰的相同帳戶登入 Unix 伺服器。
使用以下命令透過 SSH 連接至 Brocade 交換器:
Syntax: ssh username@hostname or ssh username@Switch IP
Ex: ssh admin@SANSwitch
如果 ssh 命令未要求輸入密碼,則 Brocade SSH 公開金鑰認證設定成功。
Affected Products
Connectrix B-SeriesArticle Properties
Article Number: 000211680
Article Type: How To
Last Modified: 02 Sep 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.