Specifications
3-373
Cisco Wide Area Application Services Command Reference
OL-11817-01
Chapter 3 CLI Commands
(config) ssh-key-generate
(config) ssh-key-generate
To generate the SSH host key for a WAAS device, use the ssh-key-generate global configuration
command. To remove the SSH key, use the no form of the command.
ssh-key-generate [key-length length]
Syntax Description
Defaults key-length length: 1024 bits
Command Modes global configuration
Device Modes application-accelerator
central-manager
Usage Guidelines Before you enter the sshd enable command, enter the ssh-key-generate command to generate a private
and a public host key, which the client programs use to verify a server’s identity.
When you use an SSH client and log in to a WAAS device, the public key for the SSH daemon that is
running on the device is recorded in the client machine known_hosts file in your home directory. If you
subsequently regenerate the host key by specifying the number of bits in the key-length command
option, you must delete the old public key entry associated with the WAAS device in the known_hosts
file before running the SSH client program to log in to the WAAS device. When you use the SSH client
program after deleting the old entry, the known_hosts file is updated with the new SSH public key for
the WAAS device.
Examples The following example generates an SSH public key and then enables the SSH daemon on the WAAS
device:
WAE(config)# ssh-key-generate
Ssh host key generated successfully
Saving the host key to box ...
Host key saved successfully
WAE(config)# sshd enable
Starting ssh daemon ...
Ssh daemon started successfully
Related Commands (config) sshd
key-length (Optional) Configures the length of the SSH key.
length Number of bits to create an SSH key (512–2048).