Knowledge Base
Searching in : Article
ID: AR06E00470
Applies to: NX Server Products
Added on: 2007-06-18
Last Update: 2013-10-15

Configuring NX 3.5.0 to contact the remote SSHD daemon on a port different from default 22

If you have configured the SSHD daemon to use a port different from the default 22, you need to configure both server and node accordingly.

How to configure NX Server

You should modify the /usr/NX/etc/server.cfg file by setting the proper value for the following configuration keys:

#
# Specify the TCP port where the NX server SSHD daemon is running.
#
#SSHDPort = "22"

#
# Specify the TCP port where the SSHD daemon is running on the NX SSH
# authentication server.
#
#SSHDAuthPort = "22"

Please note that you could also specify a remote SSHD daemon to be contacted by setting the following key:

#
# Specify hostname of the server used for NX SSH authentication.
#
#SSHDAuthServer = "127.0.0.1"

How to configure NX Node

You should modify the /usr/NX/etc/node.cfg file by setting the proper value for the following configuration key:

#
# Specify the TCP port where the NX node SSHD daemon is running.
#
#SSHDPort = "22"

Note for a multi-node environment

If the remote node is configured to use a SSH port different from default 22, it's necessary to remove that node from the server list and re-add it with the new port.

To remove a node from the server, run by command line:

# nxserver --nodedel  NODE:PORT

where NODE:PORT is the name of the node as it appears in the output of the 'nxserver --nodelist' command.

To re-add the node and specify the new port:

# nxserver --node add NODE --port=PORT