First let us configure local authentication to use this username and password
G00-2921-01/29(config)username admin privilege 15 secret 0 admin G00-2921-01/29(config)enable secret 123456 Enable AAA on the Router G00-2921-01/29(config)#aaa new-model
Configure local authentication. This uses the username and the password that I have already configured on the router for authentication.
G00-2921-01/29(config)#aaa authentication login default local
I also use this for enable password
G00-2921-01/29(config)#aaa authentication enable default enable
Configure a named authentication list. we will use it in required interfaces.
G00-2921-01/29(config)#aaa authentication login login_local local
All we have to do now is attach the list to required interfaces
G00-2921-01/29(config)#line vty 0 4 G00-2921-01/29(config-line)# login authentication login_local G00-2921-01/29(config)#line con 0 G00-2921-01/29(config-line)#login authentication login_local G00-2921-01/29(config-line)#line aux 0 G00-2921-01/29(config-line)#login authentication login_local
So here is all that you need
aaa new-model aaa authentication login default local aaa authentication login login_local local line con 0 login authentication login_local line aux 0 login authentication login_local line vty 0 4 privilege level 15 login authentication login_local transport input telnet ssh line vty 5 15 privilege level 15 login authentication login_local transport input telnet ssh