tmux Remote Sessions, SSH, and Pairing

tmux patterns for remote servers, resilient SSH sessions, multi-client visibility, and collaboration workflows.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Remote persistence
Start or attach after SSH login
tmux new-session -A -s remote

# Create-or-attach workflow for remote boxes.

Detach another client
tmux detach-client -t /dev/pts/1

# Detach a specific attached client.

List connected clients
tmux list-clients -F "#{client_tty} #{client_session} #{client_activity}"

# See who is attached and where from.

Lock a session
tmux lock-session -t remote

# Require unlocking before use.

## Pairing and collaboration
Attach a read-only client
tmux attach-session -r -t remote

# Observe a session without sending input.

Enable broadcast for paired commands
tmux setw synchronize-panes on

# Send the same input to multiple panes in a window.

Disable broadcast again
tmux setw synchronize-panes off

# Turn off synchronized typing.

Recommended next

No recommendations yet.