From owner-freebsd-questions Tue Oct 2 16:58: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tholian.securitydynamics.com (mail.rsasecurity.com [204.167.112.129]) by hub.freebsd.org (Postfix) with SMTP id 48A1337B405 for ; Tue, 2 Oct 2001 16:57:58 -0700 (PDT) Received: from sdtihq24.securitydynamics.com by tholian.securitydynamics.com via smtpd (for hub.FreeBSD.org [216.136.204.18]) with SMTP; 2 Oct 2001 23:54:51 UT Received: from ebola.securitydynamics.com (ebola.securid.com [192.168.7.4]) by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id TAA04487 for ; Tue, 2 Oct 2001 19:57:53 -0400 (EDT) Received: from spirit.dynas.se (localhost [127.0.0.1]) by ebola.securitydynamics.com (8.9.3+Sun/8.9.1) with SMTP id TAA22379 for ; Tue, 2 Oct 2001 19:57:50 -0400 (EDT) Received: (qmail 22484 invoked from network); 2 Oct 2001 23:57:48 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 2 Oct 2001 23:57:48 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.6/8.11.6) id f92NvkQ75810; Tue, 2 Oct 2001 16:57:46 -0700 (PDT) (envelope-from mikko) Date: Tue, 2 Oct 2001 16:57:46 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200110022357.f92NvkQ75810@explorer.rsa.com> To: wayne.pascoe@ehsrealtime.com Cc: questions@freebsd.org Subject: Re: ssh-agent from .xinitrc Newsgroups: local.freebsd.questions References: <863d51re4j.fsf@pan.home.penguinpowered.org.uk> X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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