Remote Desktop


NoMachine (NX)

This section is under construction and has not been verified by others. It has been created from one particular (working) configuration.

NoMachine (NX) is a propietary remote desktop system, supporting multiple hosts and keypair-based log-ins.

This guide assumes you have a working SSH configuration for remote access. NoMachine/NX channels authentication and encrypted communications through SSH. This can be via password authentication or an RSA key pair; NoMachine/NX uses a DSA key pair to authenticate.

My (seawolf) personal SSH configuration uses a non-standard port and key pair-based, password-less authentication. The differences in this guide to a standard, password-protected SSH configuration using port 22 are irrelevant as the default is given initially.

There are three parts to a NX system:

  1. the server is the machine to which you connect;
  2. the node is one in a group of resources that hosts your session - this can be the server;
  3. the client that connects to a server (and in turn, the node).


Download the Software

There are three packages available to download from NoMachine. All clients must have installed the client package, whereas all three packages must be installed on servers and nodes. This is because parts of the client package is used by the node, parts of which are used by the server.


Server Configuration

The automated commands are not compatible with BusyBox and the SliTaz configuration, so the installation commands need to be edited:


Node Configuration

The automated commands are not compatible with BusyBox and the SliTaz configuration, so the installation commands need to be edited:


User Configuration

NX> 900 Verifying public key authentication for NX user: //username//.
NX> 900 Adding public key for user: //username// to the authorized keys file.
NX> 716 Public key added to: /home/ //username// /.ssh/authorized_keys2.
NX> 900 Verifying public key authentication for NX user: //username//.
NX> 900 Public key authentication succeeded.
NX> 999 Bye.

You should now be able to log-in to the server/node using a normal username and password.


Recreating Keys

When the default key pair authenticates correctly, they should be regenerated for security reasons. Issue the following command to create a new key pair: sudo /usr/NX/bin/nxserver –keygen

New keys should be created. Distribute the secret key /usr/NX/share/keys/default.id_dsa.key to clients and import it in the client GUI (Configure > General > Server > Key… > Import).

Restart the server (sudo /usr/NX/bin/nxserver –restart) to complete the changes.


Tips

PasswordAuthentication no AllowUsers nx other usernames

NX> 203 NXSSH running with pid: //PID//
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: //IP address// on port: //SSH port//
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

then the /usr/nx/home/nx/.ssh/authorized_keys2 file is likely at fault.