Connectrix Brocade: Password-less login to the Switch (SSH authentication)

Summary: OpenSSH public key authentication provides password-less logins, known as SSH authentication that uses public and private key pairs for incoming authentication. Any admin user can perform incoming Open SSH public key authentication. ...

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

Configuring Incoming SSH Authentication:
Step 1. Log in to your remote host (Below is the example for g
enerating Public Key in UNIX Server).
Generate a public key in the remote server. If a public key file exists in the server, then you can use the same. Find the existing public key under .ssh directory and look for the file name id_rsa.pub

If you are logging using root account, then id_rsa.pub file may exist in the below path.
/root/.ssh/id_rsa.pub
Follow the below steps to generate RSA and or DSA public key:

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



Step 2. Import the Public Key to Brocade Switch.
Logging into the switch as any user with the admin privileged role and follow the below commands: 
 

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.


Step 3. Verify Brocade SSH Public Key Authentication
Once the Public key is imported successfully from step 2 then, the next step is to verify the access. To verify the access, login to unix server with same account that was used to generate RSA key. 
SSH to brocade switch using below command:

Syntax: ssh username@hostname or ssh username@Switch IP
Ex: ssh admin@SANSwitch


If ssh command does not asks for a password, then the setup for Brocade SSH public key authentication is successful.

Affected Products

Connectrix B-Series
Article Properties
Article Number: 000211680
Article Type: How To
Last Modified: 10 ربيع الأول 1447
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.