I have a server with tmux and a client with tmux. If I connect to my server I have running 2 tmux sessions, one from the client and one from the server. Is there a way to detach the clients sessions when connected to ssh, and reattach it when I close ssh?
Asked
Active
Viewed 317 times
0
-
What do you mean "detach the client's sessions"? Do you mean: Upon sshing to the server, only display the active (the one that ran ssh) **client** tmux pane (with the possibility of using tmux on the server)? – evan.bovie May 02 '14 at 20:37
-
Yes, I want to detach the session that was started first(the one on my home PC) and only display the one that is running on my server – danielr1996 May 02 '14 at 20:40
1 Answers
0
I don't think this is really possible, but with the combination of maximizing a tmux pane by typing
ctrl+b z
and sending the ctrl+b twice to interact with the remote tmux session, you should achieve your goal.
evan.bovie
- 3,202
- 20
- 30