cisco IOS XE — Configuring a Device for SSH Version 2 Using a Hostname and Domain Name

How to Configure Secure Shell Version 2 Support Configuring a Device for SSH Version 2 Using a Hostname and Domain Name Procedure Secure Shell Version 2 Support How to Configure Secure Shell Version 2 Support 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 catalyst9k Configures a hostname for your device. Step 4 ip domain name name Example: catalyst9k(config)# ip domain name example.com Configures a domain name for your device.

Step 5 crypto key generate rsa Example: catalyst9k(config)# crypto key generate rsa Enables the SSH server for local and remote authentication. Step 6 ip ssh [time-out seconds | authentication-retries integer] Example: catalyst9k(config)# ip ssh time-out 120 (Optional) Configures SSH control variables on your device. Step 7 ip ssh version [1 | 2] Example: catalyst9k(config)# ip ssh version 1 (Optional) Specifies the version of SSH to be run on your device. Step 8 exit Example: catalyst9k(config)# exit Exits global configuration mode and enters privileged EXEC mode. • Use no hostname command to return to the default host. Secure Shell Version 2 Support 6