Subject: Re: How do you setup a proxy http tunnel for ssh2 and sftp

Re: How do you setup a proxy http tunnel for ssh2 and sftp

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Apr 2010 00:18:53 +0200 (CEST)

On Tue, 13 Apr 2010, Robert-Jean Denault wrote:

> I have a server hidden behind a firewall. This server has access to an HTTP
> proxy (squid). The ssh man pages describe how to setup a proxyTunnel, but I
> would like to do the same thing programmatically. Any suggestions?

Sure. A common way is to do the HTTP CONNECT request to the proxy to get a
"tunnel" through, as once you've got that you can hand over the socket to
libssh2 and it can continue on from there just fine.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-14