Xavier Olive research teaching python blog til cli

SSH through an http proxy

18 November 2021

In some network environment where port 22 is blocked by default, it can be convenient to be able to route ssh connections through an http proxy.

In the .ssh/config it would look like:

ProxyCommand nc -X connect -x proxy:port %h %p

There is a different tool called connect-proxy, also widely known in Windows as connect.exe, with a slightly different syntax:

ProxyCommand "C:\path\to\connect.exe -H proxy:port %h %p"

You can install on Linux as:

sudo apt install connect-proxy