How to Change the Port on NX Server
/usr/NX/etc/server.cfg
Set the following settings in the file:
SSHDPort = "22"
SSHDAuthPort = "22"
Change “22″ to whatever port your SSH service is now listening on. You’ll then need to restart the NX Server service to put the changes into effect:
/etc/init.d/nxserver restart