Skip to main content
3 of 3
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/

Mosh and terminal multiplexing

Reading this Q&A on the site: Can I re-attach to a mosh session? made me wonder about the use cases for mosh.

Say I start tmux on my local client, and then mosh to a remote host from within tmux. From this mosh session, I start a long process on the remote machine that e.g. prints info over time to stdout.

Say that I then lose connectivity on my client, or that I restart my local client (for whatever reason). Will I be able to (1) re-attach to my local tmux session, (2) still see my mosh connection alive, and (3) still the server process running and displaying its output in it?

Amelio Vazquez-Reina
  • 43.1k
  • 81
  • 211
  • 300