[Top][All Lists]

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

Re: local and remote screens

From: Pia Mikeal
Subject: Re: local and remote screens
Date: Tue, 9 Dec 2008 11:35:17 -0500 (EST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

The best thing to do would be to detach the remote screen before you log out of the remote box instead of detaching only from your local machine. To detach from a screen within a screen, the command would be

^a a d
where ^ denotes the control key.

Then, when you log back into the remote machine from anywhere, you can simply type

screen -r

If for some reason, you forget to detach from the remote screen and so it is still attached to the local machine, tom, you can force it to detach from tom and attach to harry if you are logged in from harry, by typing

screen -D -R

I hope I understood your problem correctly and that this helps.

On Tue, 9 Dec 2008, Rich Boyce wrote:

Hello all,

I've just started using screen in earnest, and am very impressed. However, I'm currently struggling with one thing.

If I start screen on my local machine (tom), log into another (dick) through SSH, then detach, I cannot reattach to the session when I log into dick from a third machine, harry. This is because the screen session is actually on tom; I therefore need to log into tom in order to reattach. If tom is shut down, I (presumably) lose my session.

At the moment I'm not running screen on my local machine, and only on remote machines after SSHing in. This lets me reattach after connecting from a third machine. I'd like to run screen on my local machine too, but maintain the ability to detach/reattach on remote machines. How do you accomplish this? Is there a magic screen option I'm missing?


screen-users mailing list

Pia Mikeal
System Administrator
Markey Center for Structural Biology
Purdue University

reply via email to

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