OpenWrt Forum Archive

Topic: Cannot log into Router after Flashing - password - "Access Denied"

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi All,
I flashed my WD N600 with openwrt (sysupgrade firmware) which completed successfully. (i.e. I was changing from a different openwrt firmware hence the upgrade).

However, When I log into Putty and enter u/name root it then prompts me for a password.  I tried the password I used just before the flash and that does not work -- it just says "access denied"!

I also tried logging into the router using telnet 192.168.1.1 (in windows command prompt) and that shows me the openwrt splash screen and leaves me at the "root@Openwrt:/#" command prompt.  Does anyone know if I can I set a new password from here, as I am stuck with options on how to log into my router, as I think the flash deleted my password details?

Thanks

After installation openwrt has no password. It has no way of knowing, how your previous firmware stored password, so naturally the password has been resetted.

With Telnet you arrive at the console prompt with root rights (just like you did).
You use the default Linux/Unix command to change password: passwd

After settings a password, telnet stops working and you need to use ssh.

http://wiki.openwrt.org/doc/howto/firstlogin

(Last edited by hnyman on 2 Sep 2014, 14:16)

Ok thanks for that.. I must have had a mind blank as I thought I tried passwd in the telnet session.

The discussion might have continued from here.