Bill Moseley wrote: > On Tue, Jul 19, 2005 at 02:07:39PM -0300, Derek Broughton wrote: >> Maybe I'm just being particularly dense today, but is there really a >> problem with maintaining the SSH tunnel even when localhost and your mail >> host are >> the same machine? Then you always connect to port 2525. > > How would you set this up so the tunnel was always available? > Currently, I boot the laptop and log in to my account. I'm prompted > for my pass phrase when I first log in via ssh-add. Then open an > xterm and create the ssh tunnel. > > The tunnel should available soon as the network comes up before user > login. I suppose I could create a single-use ssh key pair and use > that key to create the tunnel in an init script and use the -N ssh > option. Not sure what the single use command would be, though. > Perhaps /bin/false to prevent misuse of the keypair. > > Or am I missing the obvious procedure?
Ah, I'm outta my depth talking about ssh. It "just works" :-) I run: /usr/bin/ssh -L 2525:domain:25 -l user -N domain from an init script, and use "/etc/init.d/sshTunnel restart" from my /etc/network/if-up.d/ directory. -- derek -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

