I was trying to connect to a server (Debian 10 + NoMachine Workstation Subscription v6.8.1) from a local machine (Ubuntu 18.04.6 LTS + NoMachine v6.18.1) through an ssh tunnel. It failed with error when creating a new virtual desktop:
The session negotiation failed.
Error: Session failed, application terminated prematurely.
/usr/NX/var/log/nxserver.log on the server shows:
2022-07-18 08:57:18 879.308 53528 NXSERVER User ‘fiedel’ logged in from ‘192.168.1.31’ using authentication method NX-password.
2022-07-18 08:57:18 881.413 53528 NXSERVER WARNING! User rich doesn’t exist in system.
2022-07-18 08:57:18 881.532 53528 NXSERVER WARNING! NXLogin: Cannot retrieve absolute username for user: rich.
2022-07-18 08:57:21 805.163 53559 NXNODE ERROR! Application terminated too early.
2022-07-18 08:57:21 816.552 53559 NXNODE WARNING! NXClientMonitor: NXClientMonitor: NXClient –monitor could not be started. Can’t send’NX> 990 MONITOR ON type=noDesktop ‘.
2022-07-18 08:57:21 835.150 53528 NXSERVER ERROR! Received error message from node ‘localhost:4000’, ‘Session failed, application terminated prematurely.’.
Why is nxserver looking for user ‘rich’? Any suggestions for this error?
Thanks.