How to kill port forwarding ssh when client exits
From: HK (pifpafpuf_at_gmx.de)
Date: 01/07/05
- Next message: Glenn Robinson: "SSH tunnels query"
- Previous message: removethis: "PuTTY and editing long lines on the command prompt"
- Next in thread: Pierre Asselin: "Re: How to kill port forwarding ssh when client exits"
- Reply: Pierre Asselin: "Re: How to kill port forwarding ssh when client exits"
- Reply: Simon Tatham: "Re: How to kill port forwarding ssh when client exits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 7 Jan 2005 05:06:49 -0800
Hi,
with port forwarding like
ssh -L 5432:host.at.work:25
I am able to access the mail server at
work to send email with a local
client (mutt + esmtp in this case).
Is it possible to automatically shut down
the forwarding when the client exits. Of
course I could wrap the client in a script
which starts the port forwarding, picks up
its PID, runs the client and then kills
the PID, but maybe there is something built
into ssh to do exactly this.
Thanks,
Harald Kirsch.
- Next message: Glenn Robinson: "SSH tunnels query"
- Previous message: removethis: "PuTTY and editing long lines on the command prompt"
- Next in thread: Pierre Asselin: "Re: How to kill port forwarding ssh when client exits"
- Reply: Pierre Asselin: "Re: How to kill port forwarding ssh when client exits"
- Reply: Simon Tatham: "Re: How to kill port forwarding ssh when client exits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|