[launchd-dev] Obtaining the value of SSH_AUTH_SOCK in an entry?
Chris Cleeland
chris.cleeland at gmail.com
Thu Mar 27 08:31:41 PDT 2008
Dave,
Thanks for the quick reply!
On Thu, Mar 27, 2008 at 10:12 AM, Dave Zarzycki <zarzycki at apple.com> wrote:
> Mac OS X Leopard, as shipped, automatically manages 'ssh-agent' and
> the corresponding environmental variable. One can verify this like so:
>
> $ env | grep SSH_AUTH
> SSH_AUTH_SOCK=/tmp/launch-01KBeh/Listeners
> $
Right. I like that!
> …and by reviewing /System/Library/LaunchAgents/org.openbsd.ssh-
> agent.plist. You can also verify which processes have inherited the
> SSH_AUTH_SOCK variable with:
>
> ps axe
Mmmm...okay.
According to empirical evidence, though, the ssh spawned by launchd
isn't inheriting SSH_AUTH_SOCK
8298 ?? Ss 0:00.00 /usr/libexec/launchproxy /usr/bin/ssh -v -nNT -i /Use
rs/taoadmin/.ssh/svn.ociweb.com -L 22000:svn.ociweb.com:22 -l cleeland ssh.ociwe
b.com PATH=/usr/bin:/bin:/usr/sbin:/sbin __LAUNCHD_FD=47 TMPDIR=/var/folders/Z+/
Z+cmZ48wHRWaiAQNuFalnk+++TI/-Tmp-/ SHELL=/bin/bash HOME=/Users/taoadmin USER=tao
admin LOGNAME=taoadmin
8299 ?? S 0:00.02 /usr/bin/ssh -v -nNT -i /Users/taoadmin/.ssh/svn.ociw
eb.com -L 22000:svn.ociweb.com:22 -l cleeland ssh.ociweb.com PATH=/usr/bin:/bin:
/usr/sbin:/sbin TMPDIR=/var/folders/Z+/Z+cmZ48wHRWaiAQNuFalnk+++TI/-Tmp-/ SHELL=
/bin/bash HOME=/Users/taoadmin USER=taoadmin LOGNAME=taoadmin __CF_USER_TEXT_ENC
ODING=0x1F5:0:0
Is there a way I can tell it that I want SSH_AUTH_SOCK to be inherited?
-cj
More information about the launchd-dev
mailing list