Subject: Re: ssh_tunnel

Re: ssh_tunnel

From: Peter Stuge <>
Date: Fri, 12 Nov 2010 23:16:14 +0100 wrote:
> I am actually here with a usage question for the libssh2 PHP
> binding rather than a devel question, feel free to redirect me.

Sorry, we're not really able to help. We only do the C library.

> the PHP binding does provide ssh2_tunnel() which takes remote host
> and port, but it returns a PHP resource accepting fwrite(), fgets(),
> etc. Unless there is something major I am missing, I believe this is
> of any use for another ssh connection through it.

I don't really know. It depends on what the binding does as far as
connection setup goes.

> Or is there a way to start a libssh2 session on an existing tcp
> connection using the PHP binding ?

No idea. Try to find someone who knows what the binding is doing?

Received on 2010-11-12