Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have a service running on a certain port at the server. What I want to do is, access the server using SSH and use a local (client-side) program to access the server's port. Is that possible?

share|improve this question
up vote 2 down vote accepted

Connecting to a port on a server via an ssh tunnel can be done with the -L local port forwarding option.

For example, to connect to & to make it available on the client as port 8080, you would do:

ssh -L8080:

This allows you to go to in your browser & have available. You can also have connect to another host instead of itself, making the tunnel into a proxy.

share|improve this answer

Your Answer


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.