Server Fault is a question and answer site for system and network administrators. 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'm trying to tunnel into a remote server for the purposes of debugging(so I could get a more specific error message rather than internal server error 500), and I was looking at the question: phpmyadmin forbidden through ssh tunnel

I tunnel in successfully using the command ssh -L 8080:localhost:80

But, when I try to connect using my browser using the URL I'm unable to connect. What am I doing wrong?

share|improve this question
up vote 2 down vote accepted

The command ssh -L 8080:localhost:80 connects to the server at and asks to tunnel localhost:80 (which would be itself) to the 8080 port of the client initiating the ssh connection.

In other words: you need to connect to localhost (your own workstation, not the server) on port 8080, that is where the entrance of your tunnel lies.

The URI then becomes: http://localhost:8080/ext/test/registration.php

share|improve this answer
Ah, thank you. I was a bit confused. – Garzahd Feb 16 '13 at 0:11

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.