title: SSH to server behind firewall
body: <p>I am currently trying to work out how to SSH to servers behind firewalls that deny all incoming connections. The servers can SSH out, so I am wondering if there is a way to get the server behind the firewall to create an SSH tunnel to my workstation, then allow my workstation to send commands back to the server through it?</p>
  
  <p>I have looked into tunneling / reverse tunneling, but these appear to be port forwarding solutions, which will not work as the firewall denies all connections on all ports.</p>
  
  <p>Ideally, I would like to do this in Ruby (using the Net::SSH gem), such that instead of opening a new connection like:</p>
  
  <pre><code>Net::SSH.start('host', 'user', :password =&gt; "password")
  </code></pre>
  
  <p>I could somehow bind to an existing tunnel.</p>
  
  <p>Thanks!</p>