Specifications

3-601
Cisco Wide Area Application Services Command Reference
OL-21611-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 this command.
ssh-key-generate [key-length length]
no 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 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
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 shows how to generate 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 length (Optional) Configures the length of the SSH key. The number of bits is
512–2048.