Using cURL through SSH tunnel or VPN

4

1

I would like to set my CURL to use SSH tunneling for certain domains. How can I accomplish that? I can also set up VPN or SOCKS or whatever, but I need to use CURL on local machine, but use the IP of remote machine for those connections.

Andrew

Posted 2010-06-07T19:43:09.853

Reputation: 261

Answers

5

OpenSSH can create a SOCKS proxy with the -D option, and cURL can use a SOCKS proxy with the various --socks* options.

Ignacio Vazquez-Abrams

Posted 2010-06-07T19:43:09.853

Reputation: 100 516