Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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.

share|improve this answer
    
Yeah, must be screen Hamish is having in mind.... – Kurt Pfeifle 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

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .