Reference Guide

Security | 843
crypto key generate
s z
Generate keys for the SSH server.
Syntax
crypto key generate {rsa | rsa1}
Parameters
Defaults
Key size 1024
Command Modes
CONFIGURATION
Command History
Example
Figure 39-6. crypto key generate rsa1 command example
FTOS#conf
FTOS(conf)#crypto key generate rsa1
Enter key size <1024-2048>. Default<1024>: 1024
Host key already exists. Do you want to replace. [y/n] :y
FTOS(conf)#
Usage Information
The host keys are required for key-exchange by the SSH server. If the keys are not found when the
server is enabled (ip ssh server enable), the keys are automatically generated.
This command requires user interaction and will generate a prompt prior to overwriting any existing
host keys.
Related
Commands
S6000
rsa
Enter the keyword rsa followed by the key size to generate a SSHv2 RSA
host keys.
Range: 1024 to 2048
Default: 1024
rsa1 Enter the keyword rsa1 followed by the key size to generate a SSHv1 RSA
host keys.
Range: 1024 to 2048
Default: 1024
Version 9.0.2.0 Introduced on the S6000.
Version 8.3.11.1 Introduced on Z9000
Version
8.3.7.0
Introduced on the S-Series.
Note: Only a user with superuser permissions should generate host-keys.
ip ssh server Enable the SSH server.
show crypto Display SSH host public keys