(no title)
pseudonym | 11 years ago
- SSH to remote
- on remote, run "screen"
- get disconnected from remote
- SSH to remote, .bashrc runs "screen -DR" and you resume from where you left off
You only have to create the initial screen session once, and it persists until you explicitly shut it down or restart the remote machine.
colomon|11 years ago
And what happens if I want to have two terminal tabs on my end logged into the same remote machine? (Which is basically 100% of the time for me.) It seems like that would be a case where mosh would be much smoother...
(Disclaimer: Once upon a time I used screen, but I stopped ages ago. mosh is intriguing, but as long as I'm working from home just plain vanilla ssh is all I really need...)
dedward|11 years ago
Multiple terminals in one session was more critical back when we were using dumb terminals and whatnot - where you couldn't multiplex locally.
bshimmin|11 years ago
xorcist|11 years ago
Don't do that. Open a new window in your screen instead.
Then start giving windows descriptive names. Then start giving them automatic names. Marvel at most fast you've gotten using the window selector (with type-ahead-find).
andreasvc|11 years ago
You can use 'screen -x' to attach multiple times to the same session.
sagichmal|11 years ago