tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). If my machine disconnects for any reason during this process, the remote script is killed and I cannot re-attach to the remote terminal that started the process.
Part of the purpose of terminal multiplexers is to deal with this precise scenario, but in my case, since I am running
tmux on the local machine, I can't re-attach to the terminal that started the remote process.
One option would be to run
tmux (or GNU screen) on the remote machine within one of the panes of my local tmux session, but I am concerned about running into keyboard shortcut conflicts when nesting either
What is a good way of handling this problem? Is nesting console multiplexers a good idea? Is it the only solution to this problem?