curl HTTPS via an SSH proxy
Clash Royale CLAN TAG #URR8PPP curl HTTPS via an SSH proxy I want the below curl command to run from my machine, but via a remote proxy server. curl "https://site.fake/ping" However, I want this to always work via a remote proxy server. I was tring to set this up with an ssh tunnel: sudo ssh -i ~/.ssh/private_key_file -L 443:site.com:443 username@remote.proxy.com But this did not do the trick, running under osx. Any suggestions? 1 Answer 1 Try using a socks5 proxy for example: socks5 $ ssh -D 8080 -f -C -q -N user@remote.host Then you could use curl like this: curl curl -x socks5h://0:8080 https://example.com By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.