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

So I'm connecting to a computer through ssh, and it has a port open that I can only connect to using localhost. Is there any way I can forward that port to my local machine?


My machine -> SSH server

As of now, I can only lynx SSH sever:port, but I'd like to be able to do My machine:some port and have all traffic be sent to SSH server:port. Is there any way I can do that?

share|improve this question
up vote 0 down vote accepted

Does this work ?

ssh yourlogin@sshserver -L someport:

With :

  • someport = the port in 'Your Machine:some port'
  • serverport = the port in 'server:port'

I didn't try it with, but usually with an IP visible only from the server I'm SSHing to. I'm interested to know if this is working (but don't known why it will not work)

share|improve this answer

You must log in to answer this question.

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