S1# show ip ssh
S1(config)# ip domain-name cisco.com
S1(config)# crypto key generate rsa
How many bits in the modulus [512] : 1024
S1(config)# username admin password ccna
S1# show running-config | section line vty
S1# configure terminal
S1(config)# line vty 0 15
S1(config-line)# transport input ssh
S1(config-line)# login local
S1(config-line)# exit
S1(config)# ip ssh version 2