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.

The situation

I'm running a web server on a Linux development machine, and I'd like to give access to clients to view some sites without me having to upload them to an external hosting account.

The problem

I don't have access to the router, and so can't set up port forwarding. I do however, have a hosting account (with SSH access) and even a VPS.

The question

Is there something I could set up on my external hosting account or VPS that would handle web page requests by somehow pulling the data from my local server (behind the router) and serving it to the end user? I understand it's a bit convoluted, but performance doesn't really matter.

share|improve this question

1 Answer 1

You could setup a SSH tunnel from your development machine out to your VPS which would allow you to give them access. You'll need to setup remote port forwarding. For OpenSSH client it would look something like this:

ssh -R 8080:localhost:80 user@server

Running that on the dev box should setup a tunnel from server:8080 to your dev box port 80. You can then point your client to http://server:8080

share|improve this answer
    
This will only allow local connections to server:8080 (i.e. only from server itself). To allow all hosts to connect to server:8080, enable the GatewayPorts option in the server's sshd_config and use the following command to connect to it from your dev box: ssh -R *:8080:localhost:80 user@server. –  n.st Sep 27 '13 at 22:56

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.