2 ms·
Nested sessions. Hypothetical: local computer with screen \ \ ssh/mosh to remote A, run screen \ \ ssh/mosh to remote B, run screen If each us
by Jtsummers 4y ago
Nested sessions. Hypothetical:
local computer with screen
\
\ ssh/mosh to remote A, run screen
\
\ ssh/mosh to remote B, run screen
If each uses the same prefix (the default is C-a for screen, C-b for tmux) then you have to send it multiple times to send a command to the screen sessions on either of the remote systems. If you give each a unique prefix then you can send the prefix once and it goes directly to the desired screen session.
Easier to give each system its own prefix that's constant regardless of depth, though, than trying to remember "Did I connect to A first or B first today?". Or, better in my experience, don't nest them. It's a pain however you choose to deal with the prefix problem.