Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2001 16:57:46 -0700 (PDT)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        wayne.pascoe@ehsrealtime.com
Cc:        questions@freebsd.org
Subject:   Re: ssh-agent from .xinitrc
Message-ID:  <200110022357.f92NvkQ75810@explorer.rsa.com>
References:  <863d51re4j.fsf@pan.home.penguinpowered.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd.questions you write:

>Hi all,

>I want to run ssh-agent and ssh-add to authenticate at the beginning
>of my X session. When I was using gnome (that's a whole other post :))
>I had
>exec ssh-agent gnome-session

>in .xinitrc. I then used gnome's session startup to run ssh-add with
>priority 50. This all worked great.

>Since my reload I can no longer use gnome, so I am using wmaker. 
>doing 
>exec ssh-agent ssh-add wmaker 
>doesn't work because ssh-add assumes that wmaker is the identity file
>to use. I have also tried
>exec ssh-agent ssh-add /home/waynep/.ssh/identity wmaker 
>and
>exec ssh-agent ssh-add /home/waynep/.ssh/identity </dev/null wmaker 
>but all of these fail.

>What is the best way to achieve what I am trying to do here?

I don't know about the best way, but how about an .xinitrc with:

 eval `ssh-agent`
 trap 'ssh-agent -k' 0 1 2 3 15
 ssh-add &
 $WM

Works for me...

  $.02,
  /Mikko
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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