09-14-2022 05:06 AM - edited 09-14-2022 05:09 AM
So, I proceed with the following config and now I cannot access the switch:
Switch(config)#no enable secret 5 xsafssvs
Switch(config)#enable secret testpassw
Switch(config)#username new1234 privilege 15 secret 5 testpassw
ERROR: The secret you entered is not a valid encrypted secret.
To enter an UNENCRYPTED secret, do not specify type 5 encryption.
When you properly enter an UNENCRYPTED secret, it will be encrypted.
Switch(config)#no username cisco privilege 15 secret 5 xsafssvs
This operation will remove all username related configurations with same name.Do you want to continue? [confirm]
y
Switch(config)#
Switch(config)#end
Switch#wr
Building configuration...
[OK]
Switch#
Since I deleted the username cisco and there is no other username available since I received an error...Can I access my switch now using local credentials ?
09-14-2022 05:13 AM
yes with new1234, if you configured AAA correctly.
09-14-2022 05:24 AM
Unfortunately, no AAA configured
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