title: How can I create a SSH tunnel to access a remote computer hosting a webserver
body: <p>I'm in the following situation, </p>
  
  <p>I have a VPS with a public static address where I can SSH to it.
  I also have a raspberry pi running a webserver on port 80 at home.</p>
  
  <p>My Pi opens a tunnel to the VPS on boot so I can ssh from my VPS to my Pi.</p>
  
  <p>How can I open a tunnel so I can access the webserver on the PI from my browser by typing the URL of my VPS (eg <a href="http://myserver.com:8080" rel="nofollow">http://myserver.com:8080</a>).</p>
  
  <p>I tried to open a tunnel from the pi with the following command:
  <code>ssh vps -R 8080:localhost:80</code></p>
  
  <p>I also tried to open a tunnel from my VPS
  <code>ssh pi -L 8080:pi:80</code></p>