Users Guide

Security Commands 1182
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.
Use the crypto key zeroize dsa command to remove the DSA key pair from
the system.
Private keys should never be shared with unauthorized users. This command
generates the following private/public key pair in the ssh_host_dsa_key and
ssh_host_dsa_key.pub files. Both the RSA and DSA keys must be generated to
enable the SSH server.
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 for use by the SSH or HTTPS server. Use the crypto
key zeroize form of the command to delete the private key from the local file
system.
Syntax
crypto key generate rsa
Default Configuration
RSA key pairs do not exist. By default, 2048-bit RSA keys are generated.
Command Mode
Global Configuration mode
User Guidelines
RSA keys are generated in pairs: one public RSA key and one private RSA key.
These keys are used to encrypt communication with the switch when using
SSH. 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