Overwriting A Generated Key-Pair - Cisco AP776A - Nexus Converged Network Switch 5020 Configuration Manual

Cisco mds 9000 family cli configuration guide - release 4.x (ol-18084-01, february 2009)
Hide thumbs Also See for AP776A - Nexus Converged Network Switch 5020:
Table of Contents

Advertisement

Configuring SSH Services
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
To specify or delete the SSH key in OpenSSH format for a specified user, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 2
switch(config)# username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSIYZ
0EOdJ3l5RONWcwSgAuTUSrLk3a9hdYkzY94fhHmNGQGCjVg+8cbO
xyH4Z1jcVFcrDogtQT+Q8dveqts/8XQhqkNAFeGy4u8TJ2UsoreC
U6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
switch(config)# no username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSIYZ
0EOdJ3l5RONWcwSgAuTUSrLk3a9hdYkzY94fhHmNGQGCjVg+8cbO
xyH4Z1jcVFcrDogtQT+Q8dveqts/8XQhqkNAFeGy4u8TJ2UsoreC
U6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
To specify or delete the SSH key in IETF SECSH format for a specified user, follow these steps:
Command
Step 1
switch# copy tftp://10.10.1.1/secsh_file.pub
bootflash:secsh_file.pub
Step 2
switch# config t
switch(config)#
Step 3
switch(config)# username admin sshkey file
bootflash:secsh_file.pub
switch(config)# no username admin sshkey file
bootflash:secsh_file.pub
To specify or delete the SSH key in PEM-formatted Public Key Certificate form for a specified user,
follow these steps:
Command
Step 1
switch# copy tftp://10.10.1.1/cert.pem
bootflash:cert.pem
Step 2
switch# config t
switch(config)#
Step 3
switch(config)# username admin sshkey file
bootflash:cert.pem
switch(config)# no username admin sshkey file
bootflash:cert.pem

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.
Cisco MDS 9000 Family CLI Configuration Guide
32-16
Chapter 32
Configuring Users and Common Roles
Purpose
Enters configuration mode.
Specifies the SSH key for the user
account (admin).
Deletes the SSH key for the user account
(admin).
Purpose
Downloads the file containing the SSH
key in IETF SECSH format.
Enters configuration mode.
Specifies the SSH key for the user
account (admin).
Deletes the SSH key for the user account
(admin).
Purpose
Downloads the file containing the SSH
key in PEM-formatted Public Key
Certificate form.
Enters configuration mode.
Specifies the SSH key for the user
account (usam).
Deletes the SSH key for the user account
(usam).
OL-18084-01, Cisco MDS NX-OS Release 4.x

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents