Subject: Re: console scrollback ?
To: Mike Parson <>
From: Douglas Brebner <>
List: netbsd-users
Date: 12/09/2004 12:30:09
On Wed, 8 Dec 2004 14:51:05 -0600
Mike Parson <> 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?
> >=20
> > 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=20
> > disconnect from screen and reconnect my ssh-agent isn't running
> > anymore (or at least ssh-add fails to connect to it).
> >=20
> > There a way around this?   What I really want is to have my key=20
> > permanently in screen :)
> Small misunderstanding of how agents work. =3D)
> Start your agent as early as possible in the process, I generally have
> it managing my windowmanager(s).

[snip setting up ssh-agent]
> I've not figured out a good way to automate this yet.

Have you tried using keychain from pkgsrc? I use the following lines in
my .profile and it works just fine.=20

keychain --noask ~/.ssh/id_rsa ~/.ssh/id_dsa
. ~/.keychain/`uname -n`-sh