Can’t Login to NoMachine But Logins Are Correct, Error: “Authentication failed, please try again.”

Case: Can’t connect to NoMachine over LAN due to authentication failure, yet logins are the right ones. Log at /usr/NX/var/log/nxerror.log reveals: Authentication failed with error 7.

Specs

Host: Solus Linux 4.10
NoMachine 6.12.3

2022-10-11: Confirmed for OpenSUSE Tumbleweed, NoMachine 7.8.2

Note: Case has been solved with the OS running as guest on VirtualBox 6.1.12; network adapter set as network bridge. However, the solution applies to regular installations as well as it has been sourced outside the context of VirtualBox guests.

Solution

On the NoMachine host:

  1. sudo nano /usr/NX/etc/server.cfg
  2. Ctrl+W for EnablePasswordDB
  3. Uncomment it and make sure it’s set to 1
  4. Ctrl+X and Y
  5. cd /usr/NX/bin && sudo ./nxserver --useradd $USER
  6. Specify the corresponding password at the password prompt
  7. Reconnect to NX host

Authentication should now be working as expected.

Sources

Did this solve your issue?