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
21-66
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 21 S Commands
ssh key
ssh key
To generate an SSH key, use the
ssh key
command in configuration mode. To delete the SSH keys, use
the
no
form of the command.
ssh key
{
dsa
[
bits
] |
rsa
[
bits
] |
rsa1
[
bits
]} [
force
]
no ssh key
Syntax Description
Defaults
None.
Command Modes
Configuration mode.
Command History
Usage Guidelines
None.
Examples
The following example shows how to generate an SSH key.
switch#
config terminal
switch(config)#
ssh key rsa1 1024
generating rsa1 key.....
generated rsa1 key
switch(config)#
switch(config)#
ssh key dsa 1024
generating dsa key.....
generated dsa key
switch(config)#
switch(config)#
ssh key rsa 1024
generating rsa key.....
generated rsa key
switch(config)#
switch(config)#
no ssh key
cleared RSA keys
switch(config)#
dsa
bits
Generates a DSA key. The range for the number of bits is 768 to 1856.
rsa
bits
Generates an RSA key. The range for the number of bits is 768 to 2048.
rsa1
bits
Generates an RSA1 key. The range for the number of bits is 768 to 2048.
force
(Optional) Forces the generation of keys even when previous keys are
present.
Release
Modification
1.0(2)
This command was introduced.