cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
970
Views
0
Helpful
4
Replies

Need help logging into Cisco Switch by SSH after changing privilege

wmcares
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

 

View solution in original post

4 Replies 4

roshan_f
Level 1
Level 1

Perhaps try

 

line vty 0 4
transport input ssh
transport output ssh

 

Let know

 

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

 

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

 

 

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

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card