screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reestablishing ssh connections via screen


From: JCA
Subject: Re: Reestablishing ssh connections via screen
Date: Wed, 22 Jun 2005 10:58:52 -0700

> JCA wrote:
>>   I have a Linux notebook that connects to a Linux server by ssh. The
>> notebook can be suspended to disk at any time, while ssh sessions to
>> the server are still running. How can screen be used so that, when the
>> notebook is brought back from its dormant state, whatever ssh sessions
>> it had active with the server, at the time the notebook was put to
>> sleep, are automatically re-established?
>
> I dunno how you would set up your laptop to do this, but all that's
> really needed is for you to ssh back to every computer you had
> previously connected to (however, the connections might just still be
> alive when you wake) and run "screen -r" on each host.  This will
> reconnect to detached screen sessions.

   Hmm.... I am confused. Do I run screen both on the notebook and the
server, or only on the notebook? Also, if the ssh session has been
terminated by the server, how can screen reconnect it? Notice that I
want to reconnect to exactly the same session I had, inside which I
might have been running at the time some other application, like, say,
an editor. Can screen really do this?

> But there are some interesting cases to watch out for...  What if the
> detached screen session has died?  What if the previous ssh connection
> is still up (or the Linux server hasn't noticed the HUP)?

  That's probably not relevant in my case, for the notebook would be
in suspended state for at least one hour.
  
  Thanks so much for your feedback.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]