User Guidelines
DSA keys are generated in pairs: one public DSA key and one private DSA key. If your switch
already has DSA keys when you issue this command, you are warned and prompted to replace
the existing keys. The keys are not saved in the switch configuration; they are saved in the file
system and the private key is never displayed to the user. DSA keys, along with other switch
credentials, are distributed to all units in a stack on a configuration save.
Example
The following example generates DSA key pairs.
console(config)#crypto key generate dsa
crypto key generate rsa
Use the crypto key generate rsa command in Global Configuration mode to generate RSA key
pairs.
Syntax
crypto key generate rsa
Default Configuration
RSA key pairs do not exist.
Command Mode
Global Configuration mode
User Guidelines
RSA keys are generated in pairs: one public RSA key and one private RSA key. If your switch
already has RSA keys when you issue this command, you are warned and prompted to replace
the existing keys. The keys are not saved in the switch configuration; they are saved in the file
system and the private key is never displayed to the user. RSA keys, along with other switch
credentials, are distributed to all units in a stack on a configuration save.
Example
The following example generates RSA key pairs.
console(config)#crypto key generate rsa
crypto key pubkey-chain ssh
Use the crypto key pubkey-chain ssh command in Global Configuration mode to enter public
key configuration mode in order to manually specify public keys such as SSH client public keys.
1044
SSH Commands