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

Re: ssh setup: what is the Debian way?



On Sun, 8 Apr 2007 10:14:26 -0600
Paul E Condon <pecondon@mesanetworks.net> wrote:

> On Sun, Apr 08, 2007 at 10:09:28AM -0400, Celejar wrote:
> > On Sun, 8 Apr 2007 08:47:03 -0400
> > Roberto C. Sánchez <roberto@connexer.com> wrote:
> > 
> > > On Sat, Apr 07, 2007 at 08:26:23PM -0600, Paul E Condon wrote:
> > > > Debian automagically starts ssh-agent somewhere along the chain of
> > > > events that bring up X and Gnome.  I don't reboot often, but when I
> > > > do, I forget to run ssh-add.  Where can I place an invocation of
> > > > ssh-add so that it is run once just after login? I think there must be
> > > > a Debianly correct answer. What is it?
> > > > 
> > > Use the keychain package.  You edit your ~/.bash_profile (or something
> > > like that; I forget, but I can look it up later if you want) to add a
> > > few lines.  Whenever you log in, it asks you to enter your ssh and/or
> > > gpg pass phrases.
> > 
> > IIUC, since he's using ssh-agent he doesn't need keychain, just a place
> > to call ssh-add, which can be ~/.bash_profile or wherever.
> > 
> > Celejar
> > 
> 
> You're right in understanding my question, but .bash_profile doesn't
> seem a right answer. .bash_profile begins with a comment that it is
> executed only by login shells, but it seems to be executed every time
> I open another gnome-terminal window. I'd like to be presented with a
> request to enter my pass-phrase only once when I actually log in.
> 
> Suggestions for other places to try?

.xsession? I'm not much of an X guru, but I've seen that that's where
many docs suggest starting the agent in the first place.

Celejar



Reply to: