08-18-2016 02:25 PM - edited 03-08-2019 07:04 AM
Hi guys,
I think I must be missing something simple here, but I can't seem to get this to work:
username admin password 0 peter priv 15
aaa new-model
aaa authentication login default local
When I try to telnet into the switch:
User Access Verification
Username: admin
Password:
% Authentication failed
Any ideas on what I am not doing correctly ?
-Pete
08-18-2016 05:45 PM
vty 0 15
login authentication default
08-18-2016 09:19 PM
Hi Luke,
I have applied the method to vty 0 15:
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#line vty 0 15
Switch(config-line)# login authentication default
Switch(config-line)#end
Switch#
The config now looks like:
username admin password 0 peter priv 15
aaa new-model
aaa authentication login default local
!
line con 0
password peter
line vty 5 15
!
I guess that's the default for vty line setups, so it doesn't show anything extra. I still get the same result when I try to telnet in though. "% Authentication failed " I'm sure this used to work.
-Pete
08-19-2016 06:40 AM
08-19-2016 03:33 AM
Hi;
There is no issue with reference to your configuration, the issue is you enter the wrong password to access your network device. As per current configuration your password is peter priv 15 .
To assign the privildge level 15 assign specific use is via below command:
username admin privilege 15 password 0 cisco.
Note: Password should be assign in the last.
Thanks & Best regards;
08-19-2016 05:10 AM
08-19-2016 06:36 AM
Thanks guys, I'm glad it was a simple mistake on my part - I think I have entered it the other way around on the ASA devices I've been working on recently.
I guess that the only reason that I did not get an error was that spaces are acceptable characters in a password string ?
Regardless, I just tried it on a switch and it works perfectly - problem solved, much appreciated !
-Pete
08-19-2016 08:50 AM
06-16-2022 10:24 AM
I believe you should configure enable secret on the switch and when it asks for local password that is what it is referring to not the username password.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide
Thanks guys, I'm glad it was a simple mistake on my part - I think I have entered it the other way around on the ASA devices I've been working on recently.
I guess that the only reason that I did not get an error was that spaces are acceptable characters in a password string ?
Regardless, I just tried it on a switch and it works perfectly - problem solved, much appreciated !
-Pete