title: curl HTTPS via an SSH proxy
body: <p>I want the below curl command to run from my machine, but via a remote proxy server.</p>
  
  <blockquote>
    <p>curl "<a href="https://site.fake/ping" rel="noreferrer">https://site.fake/ping</a>"</p>
  </blockquote>
  
  <p>However, I want this to always work via a remote proxy server.</p>
  
  <p>I was tring to set this up with an ssh tunnel:</p>
  
  <pre><code>sudo ssh -i ~/.ssh/private_key_file -L 443:site.com:443 username@remote.proxy.com
  </code></pre>
  
  <p>But this did not do the trick, running under osx.</p>
  
  <p>Any suggestions?</p>