Command Mode
Global Configuration mode
User Guidelines
There are no user guidelines for this command.
Example
The following example specifies the port to be used by the SSH server as 8080.
console(config)# ip ssh port 8080
crypto key generate dsa
The crypto key generate dsa Global Configuration mode command generates DSA key pairs.
Syntax
crypto key generate dsa
Default Configuration
DSA key pairs do not exist.
Command Mode
Global Configuration mode
User Guidelines
•
DSA keys are generated in pairs: one public DSA key and one private DSA key. If the Ethernet
Switch Module already has DSA keys, a warning and prompt to replace the existing keys with
new keys is displayed.
•
This command is not saved in the startup configuration; however, the keys generated by this
command are saved in the FLASH. The SSH keys can be displayed with the show crypto key
mypubkey dsa command.
•
This command may take up to 10 minutes to execute.
•
DSA key size is 2048 bits.
Example
The following example generates DSA key pairs.
console(config)# crypto key generate dsa
crypto key generate rsa
The crypto key generate rsa Global Configuration mode command generates RSA key pairs.
266
SSH Commands