Configuring Secure Shell (SSH)

Configuring the Switch for SSH Operation

show crypto host-public-key

Displays switch’s public key. Displays the version 1 and version 2 views of the key.

See “SSH Client Public-Key Authentication” on page 2-16in this guide for information about public keys saved in a configuration file.

[ babble ]

Displays hashes of the switch’s public key in phonetic format. (See “Displaying the Public Key” on page 7-14.)

[ fingerprint ]

Displays fingerprints of the switch’s public key in hexadecimal format. (See “Displaying the Public Key” on page 7-14.)

For example, to generate and display a new key:

Host Public

Key for the

Switch

Version 1 and Version 2 views of same host public key

Figure 7-5. Example of Generating a Public/Private Host Key Pair for the Switch

The 'show crypto host-public-key' displays it in two different formats because your client may store it in either of these formats after learning the key. If you wish to compare the switch key to the key as stored in your client's known­

7-11