|
Article ID: 709
Last updated: 25 Mar, 2026
Screen and tmux are terminal multiplexers available on all of the front-end systems within the NAS enclave (PFEs, AFEs, CFEs, CGHFEs, or LFEs). These utilities allow you to have persistent sessions on a these systems that can be used to reestablish access if your connection is interrupted. For example, if you begin a tmux session on a front-end system, then shut down your local workstation, then when you boot your workstation back up, you can ssh back to the front-end system your tmux session is on and reconnect to it, and it will be in the same state as before. TIP: SSH connections to the enclave front ends are disconnected after 15 minutes of inactivity. We encourage you to use Screen or tmux to mitigate any impact to your work.
Functionally both Screen and tmux are similar, so you can use either depending on your workflow and preference. Where is the Screen and tmux Software?Both screen and tmux are installed on all the NAS front-end systems under /usr/bin. You do not need any additional software on your local system. Steps to Begin a Screen or tmux SessionOnce you ssh into a front-end and have a shell open, you can launch either Screen or tmux with the following commands, respectively:
This will create a new Screen or tmux session that you can use as a regular ssh session, which will also allow you to create additional windows inside the session in lieu of creating additional ssh sessions if you so desire. You should take note of the host name of the front end you are running Screen or tmux on, since to re-attach to the session in case of a disconnect, you will need to ssh to the same host. Launching tmux
Re-attaching to tmux After Dropping the ssh Session
So long as the front-end system isn’t rebooted or you end your Screen or tmux session, you may end your ssh session whenever you would like, and you will be able to ssh back to the same front end and re-attach to your Screen or tmux session and return to the exact same point. Once the session is started, or attached to, then it can be used as a normal ssh session. The reattach commands are:
Some useful commands are:
While inside the session:
Additional InformationMore in-depth information can be found in the man pages for Screen and tmux:
Additionally, see the Screen or tmux documentation for detailed guidance. |