Configure SSH to use HTTP proxy
Suppose that I have a HTTP proxy server running at localhost:1080
and I want to connect to example@example.com
via SSH.
In CLI
Use the following command:
ssh example@example.com -o "ProxyCommand=nc -X connect -x localhost:1080 %h %p"
In .ssh/config
Add the following line to a config:
ProxyCommand nc -X connect -x localhost:1080 %h %p