Running multiple services on Port 443, Tunnel SSH over HTTPS

Posted by lajuette on Server Fault See other posts from Server Fault or by lajuette
Published on 2010-03-30T07:28:58Z Indexed on 2010/03/30 7:33 UTC
Read the original article Hit count: 528

Situation: I want to tunnel SSH sessions through HTTPS. I have a very restrictive firewall/proxy which only allows HTTP, FTP and HTTPS traffic.

What works: Setting up a tunnel through the proxy to a remote linux box that has a sshd listening at port 443

The problem: I have to have a web server (lighty) running at port 443. HTTPS traffic to other ports is forbidden by the proxy.

Ideas so far: Set up a virtual host and proxy all incoming requests to localhost: (e.g. 22)

$HTTP["host"] == "tunnel.mylinux.box" {                                         
    proxy.server = (                                                            
        "" => (("host" => "127.0.0.1", "port" => 22))                           
    )                                                                           
}

Unfortunately this won't work. Am i doing something wrong, or is there a reason, that this won't work?

© Server Fault or respective owner

Related posts about ssh-tunnel

Related posts about lighttpd