title: Ssh port forwarding google compute engine
body: <p>I am trying to forward traffic with google instances but no luck.
  Here is the scenario:
  I have 2 instances currently main-server, and mini-server-1
  I want to ssh mini-server-1 from main-server and create a dynamic port forwarding like so:</p>
  
  <blockquote>
    <p>gcloud compute ssh "mini-server-1" --zone="us-central1-f" --ssh-flag="-D:5551" --ssh-flag="-N" --ssh-flag="-n" &amp;</p>
  </blockquote>
  
  <p>I have this error:</p>
  
  <blockquote>
    <p>bind: Cannot assign requested address</p>
  </blockquote>
  
  <p>I tried: <code>ssh -N username@mini-server-1(all ips internal external, hostname) -D 5551 &amp;</code></p>
  
  <p>When i run netstat i can see that ports are free.
  Here is wget with proxy from main-server</p>
  
  <blockquote>
    <p>wget google.com -e use_proxy=yes -e http_proxy=127.0.0.1:5551</p>
    
    <p>Connecting to 127.0.0.1:5551... connected.<br>
    Proxy request sent, awaiting response...</p>
  </blockquote>
  
  <p>Does someone know how can i achieve this?</p>