Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Login into switch

Unanswered Question
Jun 10th, 2008
User Badges:

Pls, help asap. I have got problems with login into a switch. I have just copied and pasted the Telnet pw as given. It reported "bad password" each time. I don't know what that "7" here means. I want to believe is the user number.

hostname CSIGBN08

enable password 7 12CV52566SA5844WDD

line con 0

line vty 0 4

password 7 556A66ADA46SAS46ASS6646646


line vty 5 15

password 7 12AS5455S5656ADAS466A4F56G


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3.3 (3 ratings)
n.nandrekar Tue, 06/10/2008 - 00:49
User Badges:
  • Silver, 250 points or more

The number "7" there is the access privilage there. I hope that you are not copying it along with "7".

Second thing is that, have you given that string as password? I think that there was some other password and "service password-encryption" was enabled. What you are seeing there is not the actual password but a hash value (encrypted password).

You cant copy paste that for the password.



( Please rate the post if it solves your issue.)

Sundayfat Tue, 06/10/2008 - 01:02
User Badges:

Thanks for your reaction. I received "Bad password". I had copied and pasted the password without the 7, when it failed. I tried again with the 7. I realised the pw- is hashed / encrypted. But, the "sh run" output is what the former administrator sent to, as the pw. What do your suggest ?

royalblues Tue, 06/10/2008 - 01:03
User Badges:
  • Green, 3000 points or more

Just a small correction to Niranjan's post

The number 7 actually means that the password has been encrypted with the weak algorithm and can be reversed using online password breaking tools


you can use some online passowrd breaking tools to get the passowrd eg.



n.nandrekar Tue, 06/10/2008 - 04:06
User Badges:
  • Silver, 250 points or more


Thanks for pointing out the mistake! :)

Pravin Phadte Tue, 06/10/2008 - 01:08
User Badges:
  • Silver, 250 points or more


Niranjan is not right with the number 7.

Its not the privilage.

all passwords and other authentication strings in Cisco IOS configuration files are encrypted using the weak, reversible scheme used for user passwords.

To determine which scheme has been used to encrypt a specific password, check the digit preceding the encrypted string in the configuration file. If that digit is a 7, the password has been encrypted using the weak algorithm. If the digit is a 5, the password has been hashed using the stronger MD5 algorithm.

For example, in the configuration command:

enable secret 5 $1$iUjJ$cDZ03KKGh7mHfX2RSbDqP.

The enable secret has been hashed with MD5, whereas in the command:

username jdoe password 7 07362E590E1B1C041B1E124C0A2F2E206832752E1A01134D

The password has been encrypted using the weak reversible algorithm.

Below is the link which can provide you with more information.


When you provie with the command "service password-encription" you will see the output as you have pasted above.

The password followed with 5 cannat be decripted since its MD5 algorith. 7 can be.

Privilage config would be seen like below in running config.

username cisco privilege 7 password 0 cisco

And yes the pasword with 7 can be broken using tool. Boson has one.

Hope this helps.

Sundayfat Tue, 06/10/2008 - 01:27
User Badges:

Hi, Niranjan. I very much appreciate your assistance here. Just to bother further, do you think when I send syntax "sh tech-support" in EXEC user mode of that Switch,I shall get the output to have the password so needed. I have only access to the user mode, for now- thru console connection. Just send me what syntax I need send pls. Thanks once more

Pravin Phadte Tue, 06/10/2008 - 02:37
User Badges:
  • Silver, 250 points or more

1st the show tech-support would not work in EXEC user mode.

In fact if you give show tech-support you will not get the password.

Below is how the output would look for show running config in tech-support.

enable secret 5


username cisco password 7

line con 0

exec-timeout 0 0

line vty 0 4

password 7

length 0

line vty 5 15

password 7

Hope this helps.



Tim Smith Tue, 06/10/2008 - 03:34
User Badges:
  • Silver, 250 points or more


Have you unencrypted the password and tried it as the other guys suggested?

Do you have physical access to the switch?

If so, you could do a password recovery.

All the procedures are listed on the Cisco site.

Just to note - it will be service impacting however.




This Discussion