I've followed this documentation and have successfully installed the Microsoft "Visual Studio Code Remote - SSH" extension and was able to connect remotely to my laptop. But the issue is, my connectivity is limited. If I want to SSH to a WAN address, I have to use a proxy. For example if I want to SSH to my VPS, I have to use this command on Cygwin on my Windows machine:
ssh -o ProxyCommand="nc -X 5 -x 127.0.0.1:1080 %h %p" root@x.x.x.x
But how do I configure VSCode to use a proxy for the SSH connection? Is there a way to modify the SSH command that VSCode runs so that I can include the nc
command so that it uses my proxy?