DD-WRT:Change the Root SSH Password

<obligatory-blog-intro> ... </obligatory-blog-intro>

To change your root password on your DD-WRT router (assuming you already know what it currently is set to), log in through SSH. It turns out that DD-WRT doesn't use the passwd command to set user passwords like most Linux's. Instead, to set your password, run the following command.

setuserpasswd [username] [password]

To give an example here

setuserpasswd root Jimminycr1cket4tehW1n

This may not work on older versions of DD-WRT. I can't say because my router, the Buffalo Technology WHR-HP-G300N runs DD-WRT v24-sp2.

Written on: 2015-06-01 07:36:21 -0600

Last edited: 2025-03-04 01:33:04 UTC