title: How to programmatically create ssh tunnel in C/C++ cross-platform?
body: <p>I need to connect via TCP to a port that's behind a firewall, accessible through an SSH tunnel.  I can achieve connection by opening a tunnel and hittting that port, but I want to build this tunneling in to my application.</p>
  
  <p>Additionally, I want to be able to provide automatic login by use of having authorized keys on the server</p>
  
  <p>This must work on the following platforms (in order of importance)</p>
  
  <ul>
  <li>iOS (trickiest because I can't fork an ssh tunnel like I can on other platforms)</li>
  <li>OS X</li>
  <li>Linux</li>
  <li>Windows</li>
  </ul>
  
  <p>What's the easy way to do this?  I don't want to spend a great deal of effort obviously since this isn't the meat of my application.  But I'll reuse it so I may care enough to "do things right" </p>