Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 18:14:33 +0100
From:      kilim <kilim@phenix.rootshell.be>
To:        Clayton Scott Kern <ckern1@twcny.rr.com>
Cc:        questions@freebsd.org
Subject:   Re: SSH-agent setting
Message-ID:  <20050215171433.GA2345@phenix.rootshell.be>
In-Reply-To: <20050215165141.GA87901@reddwarf.twcny.rr.com>
References:  <20050215142205.GA28272@phenix.rootshell.be> <55651.213.236.228.129.1108481931.squirrel@mail.adventuras.no> <57240.213.236.228.129.1108483003.squirrel@mail.adventuras.no> <20050215163842.GA10689@phenix.rootshell.be> <20050215165141.GA87901@reddwarf.twcny.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 15, 2005 at 11:51:41AM -0500, Clayton Scott Kern wrote:

> on 02-15-2005, kilim wrote:
> > On Tue, Feb 15, 2005 at 04:56:43PM +0100, Lars Kristiansen wrote:
> > > >>
> > > >> I set ssh-agent just fine for a session from a xterm under X.
> > > >>
> > > >>
> > > >> But what I'd like to have is once I log in to have session start from
> > > >> my .profile so that when I do "startx" every subsequent xterm
> > > >> 'inherits' the ssh-agent so that I don't have to type in the password.
> > > >>
> > > >> Is such a thing do-able ?
> > > >
> > > > in ~/.xinit start your windowmanager with something like:
> > > correction: i have this in the file  ~/.xsession , sorry.
> > > > "/usr/bin/ssh-agent   ~/bin/startmywindowmanager"
> > 
> > I'm doing something like this, in my .xinitrc, as I start the X
> > from the command line using 'startx':
> > 
> > /usr/bin/ssh-agent "/usr/X11R6/bin/wmaker"
> > 
> > Then in the xterm I just type ssh-add and every consecutive xterm
> > can use ssh without prompting for the password.
>
> Why not use keychain and put it in the appropriate rc file (.bashrc,
> cshrc, etc.), then you'll be connected to the agent automatically.

You top posted. Anyways.

Because if I have ssh-agent in .profile everytime I start an xterm
I'll have another ssh-agent starting. Then for each and every one of
them I'll have to run "ssh-add" and type in the pass pharase. Which
completely defeats the whole point.

But thanks for trying anyways.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050215171433.GA2345>