How do I terminate my NX session?
To terminate your NX session from outside an existing NX session:
-
Open a
sshconnection to your RCE server (this might be rce.hmdc.harvard.edu, kennedy.fas.harvard.edu, or some other hostname; you received this information when your RCE account was created). See How do I connect to the RCE using SSH? for instructions. -
Once connected, type the following command:
nxcleanup -
If you have multiple NX sessions running, you will be prompted to select from a list of sessions:
WARNING: You appear to have more than one NX session running. Please select a session to terminate: Server Session Started 0) rce-2.hmdc.harvard.edu 2010-08-17 13:08:16 1) rce-6.hmdc.harvard.edu 2010-09-29 15:49:17 Choose (0-1):Select the desired session and press Return.
- If your session is on another server, confirm the connection:
Your NX session is not running on this node (rce-5), but on the affiliated node rce-2
Would you like to connect to the node rce-2 to terminate your session there?
(Enter y or n) [yes]: yes
The authenticity of host 'rce-2.hmdc.harvard.edu (140.247.115.106)' can't be established.
RSA key fingerprint is ae:6a:fa:31:e2:f1:7d:c6:a0:f8:47:78:7b:d0:bf:cc.
Are you sure you want to continue connecting (yes/no)?yes
To terminate your NX session from within an existing NX session
-
From the RCE desktop, select Applications–>Accessories–>Terminal.
-
Once your Terminal has opened, type the following command:
nxcleanup -
If you have multiple NX sessions running, you will be prompted to select from a list of sessions:
WARNING: You appear to have more than one NX session running. Please select a session to terminate: Server Session Started 0) rce-2.hmdc.harvard.edu 2010-08-17 13:08:16 1) rce-6.hmdc.harvard.edu 2010-09-29 15:49:17 Choose (0-1):Select the desired session and press Return.
- If your session is on another server, confirm the connection:
Your NX session is not running on this node (rce-5), but on the affiliated node rce-2
Would you like to connect to the node rce-2 to terminate your session there?
(Enter y or n) [yes]: yes
The authenticity of host 'rce-2.hmdc.harvard.edu (140.247.115.106)' can't be established.
RSA key fingerprint is ae:6a:fa:31:e2:f1:7d:c6:a0:f8:47:78:7b:d0:bf:cc.
Are you sure you want to continue connecting (yes/no)?yes
