Switch>enable
Switch#conf terminal
Switch(config)#line vty 0 15
Switch(config-line)#password cisco
Switch>enable
Switch#conf terminal
Switch(config)#enable password cisco
Switch>enable
Switch#conf terminal
Switch(config)#line console 0
Switch(config-line)#password cisco
Switch(config-line)#login