Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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