How can I fix Device Key validation failures during Linux Agent installation?

How can I fix Device Key validation failures during Linux Agent installation?

Follow the steps below to resolve the "Account validation using Device key failed" error encountered during Linux agent installation on a remote server.
  1. Navigate to Settings → FSO Agent → Deploy Agent in Applications Manager and select Windows Agent.
  2. Copy the Device Key displayed.
  3. Open the /opt/applicationsmanager/monagent/conf/monagent.cfg file on the server where the agent is installed.
  4. Update the customer_id property with the device key copied in Step 2. (Eg: customer_id=APMI_df39c350bf547731adc04df1da65d676d076e70c658e5747258157859c2f7345)
  5. Save the file and close it.
  6. Restart the Server Agent service using the following command:
Info
/opt/applicationsmanager/monagent/bin/monagent restart
Once the above steps are complete, verify that the agent registers successfully with Applications Manager.