Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to access the URL http://REMOTE:54000. My network does not allow outgoing connections on port 54000. However I have SSH access to a host "TRUSTED", which does not have any such restrictions. Is it possible to route the traffic to REMOTE on port 54000 through ssh on TRUSTED.

All hosts run some version of ubuntu

share|improve this question
up vote 3 down vote accepted

Set up a forwarding tunnel:

ssh -NL <localport>:REMOTE:54000 user@TRUSTED

then connect to localhost:localport to get to remote:54000. You'll need to figure out what localport you can use, or you can set it up as 80 and route all HTTP traffic through REMOTE that way (easiest way to get a HTTP proxy when you need it).

You can also install a local proxy as per: http proxy over ssh, not socks

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .