How do you save your current SSH state on a remote machine and then recall that state at a later point?

I have seen it done but not sure of the software involved.

link|improve this question

50% accept rate
feedback

2 Answers

up vote 5 down vote accepted

I'm not sure what you mean by "current SSH state", but maybe you're referring to the 'screen' program. This can be used to run programs on the remote host (typically a shell) and then be "detached" and reattached when logging in later. One can also resume a screen session after an SSH session got disconnected.

link|improve this answer
Yeah, must be screen Hamish is having in mind.... – pipitas Jun 20 '11 at 22:06
All hail the screen program! – Darth Android Jun 20 '11 at 22:06
thanks very much – Hamish Jun 20 '11 at 22:33
feedback

You need either GNU screen or (even better still) tmux!

When working on remote hosts, I always start a screen session (or tmux if it's available). It means that if I get disconnected (deliberately or otherwise) I do not lose any work.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.