cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using libCurl over SSH Tunnel

From: Jérôme Patey <jerome_at_patey.net>
Date: Tue, 13 Apr 2010 18:03:24 +0200

On 13/04/2010 14:06, Daniel Stenberg wrote:
> Uhm, in fact you probably even better do this:
>
> ssh -D 8080 [sshserver]
>
> As that will make OpenSSH do a SOCKS-proxy for you over that tunnel.
> With that up, you just point libcurl to use localhost:8080 as a socks
> proxy,

Thing is: SSH server is already launched, and may not be OpenSSH at
all... so I can't do this.

>> Yes, that would be good... but how can I do that programmatically ?
>
> The ssh parts would be a plain OpenSSH command invoke, and the libcurl
> code would be just regular libcurl code using a proxy.
>

Yep, that won't work :) Do you have another idea ?

Thanks,
Jerome

-- 
Jérôme Patey - jerome_at_patey.net
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-13