2-250
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set crypto key rsa
set crypto key rsa
To generate and configure an RSA key pair, use the set crypto key rsa command.
set crypto key rsa nbits [force]
Syntax Description
Defaults The command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines The crypto commands are supported on systems that run these image types only:
supk9 image—for example, cat6000-supk9.6-1-3.bin
supcvk9 image—for example, cat6000-supcvk9.6-1-3.bin
If you do not enter the force keyword, the set crypto key command is saved into the configuration file and
you will have to use the clear config all command to clear the RSA keys.
The nbits value is required.
To support SSH login, you first must generate an RSA key pair.
Examples This example shows how to create an RSA key:
Console> (enable) set crypto key rsa 1024
Generating RSA keys.... [OK]
Console> (enable)
Related Commands clear crypto key rsa
show crypto key
nbits Size of the key; valid values are 512 to 2048 bits.
force (Optional) Regenerates the keys and suppress the warning pro m pt of
overwriting existing keys.