Subject: Re: console scrollback ?
To: Luke Mewburn <lukem@NetBSD.org>
From: Ian Main <firstname.lastname@example.org>
Date: 12/10/2004 22:26:18
You rule! Exactly what I was after... I was even reading manpages today
trying to figure out how to do this :)
Luke Mewburn wrote:
>On Wed, Dec 08, 2004 at 12:34:09PM -0800, Ian Main wrote:
> | Actually I've been trying to use ssh-agent with screen and it doesn't do
> | what I want. I wonder if you have solved this?
> | I run ssh-agent screen, fire up a few screens, do my ssh-add, and it
> | works it's magic while I'm connected to that session. Soon as I
> | disconnect from screen and reconnect my ssh-agent isn't running anymore
> | (or at least ssh-add fails to connect to it).
> | There a way around this? What I really want is to have my key
> | permanently in screen :)
>For the "initial" creation of screen:
> eval `ssh-agent`
>Even if you detach that screen and exit the shell that you do
>the `eval ssh-agent` in, screen will still have the agent.
>For the subsequent screen reattachs, you can just do the following
>from any other connection;
> screen -r
> screen -x
>Once you quit that screen session you'll still have an agent
>running that you can either attach other sessions to, or you can
>just kill that agent. (This usually just happens when I reboot).
>I actually prefer "screen -x" over "screen -r". It lets me do the
> 1. Setup agent, create initial screen session (as above)
> 2. Open more xterms, "screen -x" in each one.
> I now have multiple parallel "views" into the same screen.
> 3. Use another system to connect to the system running screen.
> Run "screen -x" there too. I now have access to all my
> other screens without affect my open sessions (views) on
> my primary workstation.
>"mmm, screen -x"