This question already has an answer here:
I'm sure this is a very basic question. I assume
tmux could facilitate this, but I'm not sure of the exact steps.
My use-case is:
I'm sitting at my desktop and I ssh into a server. I start a long-running process. The process continues running on the server while I do other things (but I do not necessarily detach from the server at this time).
Now I'm on my laptop. (Say I went to lunch.) I need to ssh into that same server, see the same console output I would see on my desktop if I were there, and send some keystrokes to that same still-running application. I need to interact with it exactly as if I were still at my desktop ssh session. When finished, I will detach from this session and allow the application to continue running on the server.
Later, I will check on it from my desktop at work. At the end of the work day I will detach from it and go home. (Now no sessions at attached to the process on the server.) At home I will connect to the server and attach to the same still-running application, see what is on the screen and possibly send it some commands.
tmux seems to have such a focus on terminal multiplexing that my use-case is not explained in the answers or tutorials I have found so far. My use-case appears to be almost the opposite. I do not need to sit at one screen and connect to multiple servers. I will be working on one server, but connecting to it from multiple different computers, sometimes having multiple connections open at once, sometimes having no connections at all, and my focus is interacting with one long-running application on the server.
What are the steps to connect to the server and start my console application, then connect to that same application and see the same console output from multiple other computers?
tmux have to be installed on clients and the server?