cisco IOS XE — Configuring the Cisco IOS SSH Client to Perform Server Authentication

Configuring the Cisco IOS SSH Client to Perform Server Authentication Procedure Secure Shell Version 2 Support Configuring the Cisco IOS SSH Client to Perform Server Authentication Command or Action Purpose Step 9 key-hash key-type key-name Example: host1(conf-ssh-pubkey-data)# key-hash ssh-rsa key1 or host1(conf-ssh-pubkey-data)# key-hash ssh-ed25519 DFEAF10390E560AEA745CCBA53E044ED (Optional) Specifies the SSH key type and version. • The key type can be ssh-rsa or ssh-ed25519 for the configuration of private public key pairs. • This step is optional only if the key-string command is configured. • You must configure either the key-string command or the key-hash command.

Note You can use a hashing software to compute the hash of the public key string, or you can also copy the hash value from another Cisco device. Entering the public key data using the key-string command is the preferred way to enter the public key data for the first time. Step 10 end Example: host1(conf-ssh-pubkey-data)# end Exits public-key data configuration mode and returns to privileged EXEC mode. • Use no hostname command to return to the default host. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password, if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode.

Step 3 hostname name Example: Device(config)# hostname host1 Specifies the hostname. Secure Shell Version 2 Support 9