Create-or-attach workflow for remote boxes.
Section: Remote persistence
Start or attach after SSH login
bash
bash
tmux new-session -A -s remoteExplanation
`-A` attaches if the session exists and creates it otherwise.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Remote persistence