title: How to debug a ssh tunnel
body: <p>I want to setup a simple ssh tunnel from a local machine to a machine on the internet.
  I'm using </p>
  
  <p><code>ssh -D 8080 -f -C -q -N -p 12122 &lt;username&gt;@&lt;hostname&gt;</code></p>
  
  <p>Setup works fine (I think) cause ssh returs asking for the credentials, which I provide.</p>
  
  <p>Then i do</p>
  
  <p><code>export http_proxy=http://localhost:8080</code>
  and
  <code>wget http://www.google.com</code></p>
  
  <p>Wget returns that the request has been sent to the proxy, but no data is received back.
  What i need is a way to look at how ssh is processing the request....</p>