On Mon, 2003-05-05 at 04:10, Felix E. Klee wrote:
> Hi,
> 
> I added the following menu entry
> 
>     + "QQQ: forward inka ports" Exec ssh -N -L1119:news.inka.de:119 
> -L1125:mail.inka.de:25 -L1110:mail.inka.de:110 inka
> 
> However, when clicking on "QQQ: forward inka ports" the ssh deamon starts 
> but terminates immediately afterwards. When I start the above ssh command 
> from a terminal everything works fine. I already tried using the "-n" 
> option but this doesn't work for port forwarding (then ssh terminates 
> immediately, even when started from a terminal).
> 
> What am I doing wrong?
> 
> Felix

Well, -n is what you need, and when using -N ssh doesn't terminate for
me so long as the remote host is running ssh protocol version 2 (which
is required for -N to work.)  If the remote host is only running
protocol 1 and you don't have the power to upgrade the daemon on the
remote host (which would be the ideal solution), you'll have to give ssh
a command to run--either sleep with a long timeout, or a small program
that simply sits around and does nothing until terminated.

-- 
Ben Winslow <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to