ā04-30-2012 09:18 AM - edited ā03-07-2019 06:25 AM
Hi, Title describes my problem.
I can use Putty to SSH into my new switch (Directly connected to my laptop with ethernet cable), but I cant log into my switch.
Sent username "admin"
admin@192.168.251.1's password:
Access denied
It doesnt like my password, but I have only set 1 password (king) on this switch. I've configured 3 other switches with SSH and had no problem. Been trouble shooting for awhile and It'd be great if I could have a 2nd set of eyes take a peek, it may be something simple im missing. Also, my running config is attached. THANK YOU!!
Solved! Go to Solution.
ā04-30-2012 09:33 AM
Hi,
try configuring -
aaa new-model
aaa authentication login default local
its should work... Hopefully
Regards,
Pawan Sharma
ā12-06-2016 07:39 AM
I know this is an old thread, but for future arrivals running into a similar issue:
You can fix it via the aaa method above, or often times, under line vty 0 15, you just need to put 'login local'.
Just the 'login' command like in Nick's config will cause the issue reported above, but configuring 'login local' under the lines will address this as well.
You can only use the 'login local' command if the router is in 'no aaa new-model'.
-Tony
ā04-30-2012 09:26 AM
Nick,
I believe all you'll need to do is enable aaa. Try:
aaa new-model
Then try to connect with your username and password.
HTH,
John
ā07-22-2017 07:45 PM
Thank you guys, I was just faced with the same problem and above suggestion helped me out. Thanks again.
ā04-30-2012 09:33 AM
Hi,
try configuring -
aaa new-model
aaa authentication login default local
its should work... Hopefully
Regards,
Pawan Sharma
ā04-30-2012 11:20 AM
Perfect. The below commands solved my issue. Thank y'all so much for taking a look. Have a great day!
aaa new-model
aaa authentication login default local
ā05-01-2012 01:30 AM
Hey Nick,
I am glad that those commands solved your problem. Everybody here is happy to help and so I am.
Regards,
Pawan Sharma
ā02-14-2013 05:03 PM
Thank you from me as well. Total newb here and was heartbroken when I knew I had everything set spot on, but I couldn't connect. I have no idea why those commands did the trick, but they did and now I can SSH into my switch!
Thanks again!
Dave
ā12-06-2016 07:39 AM
I know this is an old thread, but for future arrivals running into a similar issue:
You can fix it via the aaa method above, or often times, under line vty 0 15, you just need to put 'login local'.
Just the 'login' command like in Nick's config will cause the issue reported above, but configuring 'login local' under the lines will address this as well.
You can only use the 'login local' command if the router is in 'no aaa new-model'.
-Tony
ā12-06-2016 07:56 AM
Thanks Tony, you are absolutely correct. There will likely be someone who comes across this thread and this will be helpful. This post was from when I first got into the field! :)
-Nick Chenault
ā04-27-2018 03:01 PM
worked for me as well
i had a 3560G and after upgrade could not login via username/passwrod
put the commands mentioned and worked
ā09-28-2018 08:21 AM
Thank you. Helped me resolve today.
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