tmux keeps shells and jobs alive when SSH drops. Useful for builds, migrations or long-running panels on a VPS.
Steps
Install tmux:
sudo apt updatesudo apt install -y tmuxCreate a named session:
tmux new -s workDetach (leave processes running): Ctrl+b then d.
List and reattach:
tmux lstmux attach -t work
Tips
- Default prefix: Ctrl+b. Split horizontal: Ctrl+b " — vertical: Ctrl+b %.
- Prefer a named tmux session over blind nohup for long jobs.
ext step
Work over stable SSH on Xernode Cloud VPS.