cisco IOS XE — Example: Enabling Client-Side Debugs

00:34:08: SSH2 1: send: len 16 (includes padlen 6) 00:34:08: SSH2 1: done calc MAC out #15 00:34:08: SSH1: Session terminated normally Configuration Examples for Secure Shell Version 2 Support Example: Configuring Secure Shell Version 2 Device> enable Device# configure terminal Device(config)# ip ssh version 2 Device(config)# end Example: Configuring Secure Shell Versions 1 and 2 Device> enable Device# configure terminal Device(config)# no ip ssh version Device(config)# end Example: Starting an Encrypted Session with a Remote Device Device> enable Device# ssh -v 2 -c aes256-cbc -m hmac-sha1-160 -l shaship 10.76.82.24 Device# exit Example:

Setting an SNMP Trap The following example shows how to set an SNMP trap is set. The trap notification is generated automatically when the SSH session terminates. In the example, 10.1.1.1 is the IP address of the SSH client. Device> enable Device# configure terminal Device(config)# snmp-server trap link switchover Device(config)# snmp-server host 10.1.1.1 public tty Device(config)# end Examples: SSH Keyboard Interactive Authentication Example: Enabling Client-Side Debugs The following example shows that the client-side debugs are turned on, and the maximum number of prompts is six (three for the SSH keyboard interactive authentication method and three for the password authentication method).

Password: Password: Password: Password: Password: Password: cisco123 Secure Shell Version 2 Support Configuration Examples for Secure Shell Version 2 Support Secure Shell Version 2 Support 17