SSH is used to open a terminal session to the NAS.
If disabled in OS5, you will need to enable it.
You will also need to know the admin/root password for the NAS. I’ve never used a WD NAS, so am not sure how to find or set the default admin password.
If things work the same as on an Ubuntu system, it will go something like this:
Step 1: Stop Plex Media Server
Step 2: If on a Mac or Linux box, use a terminal session. If on a Windows PC, open a command window to get to the C:\ prompt.
Enter ssh user@IP, where user = the username you use to login to the server and IP = the IP address of the server.
You may see some text about “the authenticity can’t be established.” Enter yes to continue.
You’ll then be prompted for your password.
Step 3: Change to the desired directory
cd /mnt/HD/HD_a2/Public
Step 4: Download the utility (Note: I don’t know if WD supports the wget command. If not, write back and we’ll download a different way).
wget -O UserCredentialReset.sh https://github.com/ChuckPa/UserCredentialReset/releases/latest/download/UserCredentialReset.sh
Step 5: Make the script executable (you’ll need the admin password): sudo chmod +x UserCredentialReset.sh
Step 6: Run it: sudo ./UserCredentialReset.sh
Step 7: When prompted, enter the code from https://plex.tv/claim.
If it works, you’ll see “Claim completed without errors.”
Step 8: Start Plex Media Server and see if you can login and reach server settings.
Here's an example running on Ubuntu:
$ sudo ./UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (Ubuntu 24.04.3 LTS)
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-nottherealtoken
Stopping PMS
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
Username: FordGuy61
Email: <redacted>
Starting PMS
Complete.
$