title: Port Forward Directly to a Guest OS with VirtualBox
body: <p>I am currently using Ubuntu 10.04 for some rails development. It is installed as a guest machine using VirtualBox on a Windows 7 x64 host. </p>
  
  <p>Within Ubuntu, I am trying to port tunnel several ports from a remote server directly to the Guest OS in order to avoid having to download a remote database.</p>
  
  <p>Let's say I want to forward port 5000 on the remote server to port 5000 on the guest os.</p>
  
  <p>I have set up a forwarder for the port on the Windows side, using VBoxManage.exe. This forwards HostPort 5000 to GuestPort 5000.</p>
  
  <p>Then within ubuntu I run, ssh -L5000:127.0.0.1:5000. However, whenever I try to access "127.0.0.1:5000", I receive the message "channel 7: open failed: connect failed: Connection refused"</p>
  
  <p>Am I missing something?</p>
  
  <p>Thanks for the help!</p>