01-11-2024 01:21 PM
The enable and secret password was removed from my router remotely and now I cannot enter enable mode for the router from a SSH session. Is there a way to reenable the enable password remotely? I can log into the router I just cannot enter the priv exec mode to enter command and receive "% Error in authentication". My device is across the country so I do not have the ability to console in.
01-11-2024 01:25 PM - edited 01-11-2024 01:26 PM
you need go password recovery physically (no remote option) - you may need some one to go onsite and use Teams to give console access.
01-11-2024 01:52 PM
Console or use SNMP to inject the command back into the router.
01-12-2024 10:37 AM
@Leo Laohoo Interesting suggestion. I remember using:
snmpset -v:2c -c <community_string> <router_IP> <OID> s "NEW_PASSWORD"
to do this, but the problem was to find the right OID. Maybe an snmpwalk:
snmpwalk -v2c -c <community_string> <router_IP> <MIB_tree>
can reveal that ?
01-11-2024 11:58 PM
hi,
with such a big router, you should have AAA in place.
as others suggested, try to physically console and hopefully you can directly login to privilege exec mode.
if no luck, then you'll have to perform a router password recovery.
then deal with who removed the PW later on and change it to avoid being compromised.
01-12-2024 10:29 AM
Another 'option' would be to ask someone to turn off the power and turn it back on. Maybe you are lucky and the changes (password removal) were not saved to memory, and the router boots with the original config...
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