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 running lighttpd and openssh on an old box. Could it be configured to have lighttpd handle web traffic through, but have ssh traffic through

Due to irrelevant circumstances, I find myself at times stuck behind a firewall that only allows traffic through port 80. Naturally, this poses a problem when connecting to sites using HTTPS. I want to set up a ssh tunnel on this box that's already serving content.

To keep the question general and useful, I'll phrase my question it similarly to the title: is it possible to set up ssh to listen on a specific port on a specific subdomain?

share|improve this question
up vote 1 down vote accepted

Since you're using virtual hosting to differentiate between different traffic formats, your HTTP server (lighttpd in this case) has to do the work of differentiating the traffic, which means all the traffic has to conform to HTTP spec. The best solution I can come up with is to allow HTTP proxy traffic (including specifically the CONNECT proxy method) with appropriate authorization of course, and then connect to SSH via your HTTP proxy.

Just be careful to not allow unauthenticated proxy traffic, or you will become a spam relay in a matter of minutes.

Also, Corkscrew.

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.