Reset user account password via ssh/ remote ssh access

Basically I have forgot the password for the main account to the device so cannot log into the UI to change any settings. I do however have SSH enabled and can log in via terminal into root. From there is there a way I can change the password for my own user account?

Secondly. I used to be able to access the device via SSH remotely from outside my network though I cannot anymore. What port, if any do I need to forward on my router to re allow this?

Hi there,

You can do a reset of the unit by pressing the button located on top of the Ethernet port for 3 to 5 seconds and this should reset the password for the admin user on the unit.

here is a link that might help you with this hope this helps you out:

http://wdc.custhelp.com/app/answers/detail/a_id/10432

No need to restore whole system  If you know the affected username and you can indeed SSH in to the system to root, then just issue a password reset.   https://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-users.html

passwd username    then follow the prompts.

1 Like