Re:Why Putting SSH On Another Port is a Good Idea
by grahamedgecombe on Saturday October 26, 2013 @06:16AM
(#6616911)
It can work like this - see: http://wiki.squid-cache.org/Features/HTTPS#CONNECT_tunnel
Re:Why Putting SSH On Another Port is a Good Idea
by kenrose on Saturday October 26, 2013 @02:24PM
(#6618531)
Right. Sorry, in case I wasn't clear, the HTTP proxy acts as a proxy for HTTP on port 80, but tunnels HTTPS traffic (and anything else including ssh) on port 443. The tunnelling is done using the HTTP CONNECT verb.
Thats not how HTTPS works, there is no HTTP proxy for 443. You are in a corporate environment where nothing is let out on port 80, except through their HTTP proxy. However, port 443 is allowed out.
> In fact, this behaviour is what makes HTTPS remain secure when going through an HTTP proxy.
That would be a MITM against https and it doenst work that way.
If you would go over the http proxy to connect to your sshd on port 443, that would be stupid as the proxy would see your connections. Its much easier and better to just connect directly without asking the proxy.