title: How to make SSH remote port forward that listens 0.0.0.0
body: <p>I need to do remote port forwarding that will listen <code>0.0.0.0</code> instead of <code>127.0.0.1</code> on the remote machine so that I can connect from outside internet to <code>IP_OF_BBB:SOME_PORT</code> in order to connect to SSH port of <code>AAA</code>.</p>
  
  <p>I managed to make this happen by the following: </p>
  
  <ol>
  <li>AAA:~$ <code>ssh -R 22:localhost:2222 user@BBB</code></li>
  <li>BBB:~$ <code>ssh -L 2222:*:2223 user@localhost</code></li>
  </ol>
  
  <p>Now I can connect to <code>AAA</code> with this command: </p>
  
  <p><code>ssh user@BBB -p 2223</code></p>
  
  <p>The local port forwarding is a workaround, of course. Is there any clearer way to do this? </p>