I'd like to understand the mechanism of HTTP tunneling better:
- So I've got a corporate HTTP Proxy that supports HTTP CONNECT method.
- I configure something like corkscrew to tunnel SSH over HTTP
- Which means that when corkscrew sends HTTP traffic to the Web Proxy the latter will issue an HTTP CONNECT to the target server
Question: While I'm connecting to SSH Server, how does it understand the initial HTTP CONNECT from the Web Proxy to confirm the connection? After all it's HTTP, not SSH.