Joseph,

I've had the similar problem as You. I upgraded fromm ssh1 to ssh2 and persistent 
Portforwarding was no longer possible.

I,ve posted a question to comp.security.ssh but receved no answer or hint until now. I 
think, it's a bug in ssh2 (if You are looking into the source-code, you will find a 
comment in the "accept socket connection request"-callback function, that there is a 
serious problem concerning persistent portforwarding.

As a quick hack workaround, I've written a short C-program which compiles using gcc on 
a Sun Solaris 2.6.

The program works as a proxy to ssh2.

E.g. the original ssh2-forwarding command was:

Host1%> ssh2 -f -L Port1:Host2:Port2 Host2

Then You need a 2nd unused Port on Host1, e.g. Port1a. You must start the proxy as 
follows:

Host1%> nohup multissh2 -l Port1 -s Port1a -h Host2 >logfile 2>&1 &

It works when You are using public key authentication from Host1 to Host2.

Each time You connect to Port1 on Host1 a new ssh2 is forked listening on Port1a on 
Host1. Now the proxy copies everything it receices on Port1 to Port1a and vice versa. 
It works really fine, but it's a hack.

Regards,
Stefan


-----Urspr�ngliche Nachricht-----
Von: Joseph Wagner [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 17. Januar 2000 22:09
An: [EMAIL PROTECTED]
Betreff: persistent forwarding

Hello,

I've been able to set up 'one-time' forwards - where the ssh connection
terminates when the forwarded connection terminates -  but I would also
like to set up persistent forwards - where the ssh connection is available
for multiple forwarded connections, perhaps even many at one time.

Is it possible to do this with ssh? Here's my environment:

SSH Version 2.0.13
FreeBSD boxen

Thanks for any help you can give me.

Joe Wagner
[EMAIL PROTECTED]

Stefan Trenker (E-Mail).vcf

multissh2.c

Makefile

Reply via email to