On Sun, 3 Mar 2002, Balazs Javor wrote: >How do I start ssh-add when X starts to add my key to the agent? >(Agent is already running?)
>I've tried to figure out what exactly happens when I do a startx, >and followed several of the config files in /etc/X11/. I think >I generally understood the concept of the xsession.d dir, which >is pretty neat, but very hard to read... >In Xsession.options I have the allow-user-xsession, so I was hoping >that when I create a .xsession with the line Firstly, xsession is what is run when you are logged in by something like xdm or kdm, or gdm. For using startx, you want .xinitrc. Edit /usr/bin/startx to verify. Assuming you have ssh-agent runnung (if not, use this line in your .xsession) exec ssh-agent fvwm2 (replace fvwm2 with whatever you use) >ssh-add & You may want to change this to ssh-add < /dev/null And make sure you have ssh-askpass installed. This should be run by your Window Manager (perhaps you can use xclients file) Cameron Kerr -- [EMAIL PROTECTED] http://homepages.paradise.net.nz/~cameronk/