08-30-2021 05:28 AM
Hi,
I'm a newbie trying to learn. I recently put in this command on one of our Cisco 2000 series switches with SSH using Putty:
config t
username admin privilege 15 password [2021XXXXXXX]
exit
wr
exit
Now when I try to login with that password by using the username admin and when the password prompt pops up I try the 2021XXXXXXX for the password prompt but it says "Access Denied." I already deleted the other admin account, DOH!
What am I missing on why I cant SSH into the Switch using the password I set "2021XXXXXXX"? I tried from another switch but it gives me "Foreign Host has closed the session?"
Any help would be appreciated.
Solved! Go to Solution.
08-30-2021 06:59 AM
Hello @wmcares ,
line vty 0 4
privilege level 15
line vty 5 15
privilege level 15
I have seen recently that the command privilege level 15 is needed to access when using a username with privilege level 15
Hope to help
Giuseppe
08-30-2021 05:58 AM
Perhaps try
line vty 0 4
transport input ssh
transport output ssh
Let know
08-30-2021 06:59 AM
Hello @wmcares ,
line vty 0 4
privilege level 15
line vty 5 15
privilege level 15
I have seen recently that the command privilege level 15 is needed to access when using a username with privilege level 15
Hope to help
Giuseppe
09-01-2021 05:35 AM
Hi Giueseppe...When I first SSH into this switch it shows:
login as: {Username}
admin@[Swtches IP Address}]'s password:
Before it showed as:
Login as: [Username]
Keyboard-interactive authentication prompts from server:
Password: [Which I then entered only the password for the username]
Also, can you give me an exact example of how to login from:
login as: {Username}
admin@[Swtches IP Address]'s password:
If I put the username in, it wants to try and immediately get the password@switch.ip:(TO WHICH NO COMBINATION OF THE PW WORKS or OTHER VARIOUS PASSWORDS JUST TO TRY)
Where do I put in all this info you provided as I cant get logged into the switch by SSH?
line vty 0 4
privilege level 15
line vty 5 15
privilege level 15
09-01-2021 07:07 AM - edited 09-01-2021 07:13 AM
Hello @wmcares ,
you need a console cable and to access the switch via console via an USB to Rs232 converter you can use Putty for this.
or if you have not saved the configuration, you can simply power cycle the switch
Hope to help
Giuseppe
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