gabriel rosenkoetter on Thu, 4 Jan 2001 23:07:35 -0500 |
On Thu, Jan 04, 2001 at 11:42:30PM +0100, MaD dUCK wrote: > my specific problem actually relates to a custom script which replaces > fetchmail and retrieves my POP mail from a couple of servers every > 5-10 minutes through SSH tunnels. for this to work, ssh-agent must be > started and the passphrase registered, so my .xsession is something > like this: > > eval `/usr/bin/ssh-agent` > /usr/bin/ssh-askpass | /usr/bin/ssh-add -p || exit -1 > (~/bin/tunnelfetchmail &> /dev/null) & > /usr/X11R6/bin/wmaker > > the problem is that tunnelfetchmail gets respawned with every new > logon and the different sessions not only retrieve mail every 30 > seconds (which is heavy on the network), but also interfere with each > other. > > do you see though why i chose the above approach? Yeah, I get it. Anything that I want to run post-ssh-add, though, I do through a little shell script (started in its own miniature xterm from what's now in my VTWM_Profile) which runs ssh-add, then executes everything that requires the passphrase to actually be entered. (This is why, as you may have noticed if you've ever watched me log in somewhere, I get a bunch of xterms, then enter my passphrase, then get a few more xterms on other machines.) Not saying my way is inherently better, but if I were going to be using POP/IMAP for anything (which I never would for unrelated reaons... I much prefer forwarding, I don't receive any email through lame NT boxes, etcetera), I would put my fetchmail call there. Heck, if you don't want the xterm-ized ssh-add routine, I bet you could just run ssh-ask-pass && ( fetchmail ; sshes ) as a child of your window manager and be happy. Hope that (actually, this time) helps... ~ g r @ eclipsed.net ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|