I'm behind a corporate network with an HTTP proxy. I also have an SSH server to reach on port 22. I don't have any kind of control over that server: I'm not root and even if I were I'm not allowed to install software or change configuration. The server listens on port 22, must be reached there and this cannot be changed ever.
If I configure XShell
(but the same should apply to any other client) to use the corporate proxy I can't connect. Wiresharking it shows that CONNECT
method gets refused by proxy because "that's not an SSL standard port".
I believe that the proxy blocks traffic to ports other than 80 and 443. Without doing deep packet inspection or other esotheric tricks.
I have been linked an article about configuring HTTP proxy for SSH "when the proxy filters SSH protocol" but the problem is that it works for Linux and I have another problem with it (it doesn't detect network card, already asked here...).
The question is: how to bypass the proxy without installing software or changing configuration on the target machine?
I would also like to understand
- Since the proxy blocks port 22 instead of SSH protocol by deep packet inspection, does the linked guide work when the server listens on port 22 and cannot be changed any way ever?
- Is there a way to make it work on Windows?