Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.