Synology DSM root password for ssh

Today I wanted to login to my Synology Diskstation NAS via SSH as root, but it wouldn’t accept my password. To resolve, try stopping and restarting the SSH service (under Terminal in the DSM Control Panel). If that doesn’t work, try the following (verbatim via Primal Cortex’s Weblog):

  1. Enable telnet on the DSM Control Panel
  2. Telnet as root. The password should be the same as admin. If not, change again the admin password.
  3. Execute the following command: synouser -setpwd root password_same_as_admin_or_not
  4. Trying now to ssh as root it should succeed with the password gave in the above command
  5. Disable telnet on the DSM Control Panel
  6. Done.

Via Synology DSM root password for ssh | Primal Cortex’s Weblog.