S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
39-16
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 39 Configuring Users and Common Roles
Configuring SSH Services
To specify or delete the SSH key in OpenSSH format for a specified user, follow these steps:
To specify or delete the SSH key in IETF SECSH format for a specified user, follow these steps:
To specify or delete the SSH key in PEM-formatted Public Key Certificate form for a specified user,
follow these steps:
Overwriting a Generated Key-Pair
If the SSH key-pair option is already generated for the required version, you can force the switch to
overwrite the previously generated key-pair.
Command
Purpose
Step 1
switch#
config t
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSIYZ
0EOdJ3l5RONWcwSgAuTUSrLk3a9hdYkzY94fhHmN8cbO
xyH4Z1jcVFcQ8dveqts/8XQhqkNAFeGy4u8TJ2UsoreC
U6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
Specifies the SSH key for the user
account (admin).
switch(config)#
no
username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSIYZ
0EOdJ3l5RONWcwSgAuTUSrLk3a9hdYkzY94fhHmN8cbO
xyH4Z1jcVFcQ8dveqts/8XQhqkNAFeGy4u8TJ2UsoreC
U6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
Deletes the SSH key for the user account
(admin).
Command
Purpose
Step 1
switch#
copy tftp://10.10.1.1/secsh_file.pub
bootflash:secsh_file.pub
Downloads the file containing the SSH
key in IETF SECSH format.
Step 2
switch#
config t
switch(config)#
Enters configuration mode.
Step 3
switch(config)#
username admin sshkey file
bootflash:secsh_file.pub
Specifies the SSH key for the user
account (admin).
switch(config)#
no
username admin sshkey file
bootflash:secsh_file.pub
Deletes the SSH key for the user account
(admin).
Command
Purpose
Step 1
switch#
copy tftp://10.10.1.1/cert.pem
bootflash:cert.pem
Downloads the file containing the SSH
key in PEM-formatted Public Key
Certificate form.
Step 2
switch#
config t
switch(config)#
Enters configuration mode.
Step 3
switch(config)#
username admin sshkey file
bootflash:cert.pem
Specifies the SSH key for the user
account (usam).
switch(config)#
no
username admin sshkey file
bootflash:cert.pem
Deletes the SSH key for the user account
(usam).