Labels

Showing posts with label Cisco. Show all posts
Showing posts with label Cisco. Show all posts

Wednesday, January 23, 2013

How to SSH Server Configuration in Cisco catalyst 2960

Switch#configure terminal
Switch(config)#hostname Switch2
Switch(config)#enable secret cisco
Switch(config)#ip domain-name domainname.com
Switch(config)#crypto key generate rsa
Switch(config)#ip ssh time-out 120
Switch(config)#ip ssh authentication-retries 3
Switch(config)#service tcp-keepalives-in
Switch(config)#service tcp-keepalives-out
Switch(config)#aaa new-model
Switch(config)#username true password 0 abc123
Switch(config)#interface Vlan1
Switch(config)#ip address 192.168.200.3 255.255.255.0
Switch(config)#ip default-gateway 192.168.200.1
Switch(config)#no shutdown
Switch(config)#line con 0
Switch(config)#password cisco
Switch(config)#line vty 0 4
Switch(config)#password cisco
Switch(config)#transport input ssh
Switch(config)#line vty 5 15
Switch(config)#password cisco
Switch(config)#transport input telnet