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 Server 中获取公钥的示例)。
在远程服务器中生成公钥。如果服务器中存在公钥文件,则可以使用相同的公钥文件。找到 .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-Series
Article Properties
Article Number: 000211680
Article Type: How To
Last Modified: 02 سبتمبر 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.