Configure and enable basic authentication via local user database
R1(config)#user test password test
R1(config)#aaa new-model
R1(config)#aaa authentication login default local R1(config)#user test password test
R1(config)#aaa new-model
R1(config)#aaa authentication login default local
R1(config)#Hostname test
R1(config)#ip domain-name test
R1(config)#crypto key generate rsa general-keys modulus 1024
R1(config)#ip ssh time-out 120
R1(config)#ip ssh authentication-retries 4
R1(config)#ip ssh version 2
R1(config)#ip ssh logging events
R1(config)# line vty 0 4
R1(config-line)# transport input ssh
Configure zone based firewall
create security zones > create zone pairs
configure class map > configure policy map > attach policy map to zone pair with service-policy command > attach interfaces to zones