Command Reference SSH Commands
SSH Commands
crypto key generate
Use this command to generate a public key on the SSH server in global configuration mode.
crypto key generate {rsa | dsa}
Parameter Description Parameter
Description
rsa
Generates an RSA key.
dsa
Generates a DSA key.
Defaults
The SSH server does not generate a public key by default.
Command
Mode
Global configuration mode
Usage Guide
When you need to enable the SSH server service, use this command to generate a public key on the
SSH server and enable the SSH server service by running the enable service ssh-server command
at the same time. SSH 1 uses the RSA key; SSH 2 uses the RSA or DSA key. Therefore, if an RSA
key has been generated, both SSH1 and SSH2 can use it. If only a DSA key is generated, only SSH2
can use it.
A key can be deleted by using the crypto key zeroize command. The no crypto key
generate command is not available.
Configuration
Examples
Ruijie# configure terminal
Ruijie(config)# crypto key generate rsa
Command Description Related
Commands
show ip ssh
Displays the current status of the SSH server.
crypto key zeroize {rsa | dsa}
Deletes the DSA and RSA keys and disables the SSH server
function.
Platform
Description
N/A
crypto key zeroize
Use this command to delete the public key on the SSH server in global configuration mode.
crypto key zeroize {rsa | dsa}