Issue
I'm working in a Windows machine behind a corporate firewall and acessing a linux server also behind a corporate firewall. With the excellent Remote-SSH extension, VSCode is failing to install my extensions in the remote linux machine.
How to fix it?
Solution
As far as I understand, my local machine downloads the extension code and copies it to the remote machine. But there is just a few extensions that try to download some data directly from the internet.
The main reason of this failure is that my local machine can't directly access the internet. Usually restarting my local proxy solves the problem.
My local machine is a Windows machine. I have a local cntlm proxy running. Remote SSH works flawlessly, downloading extensions using this proxy.
My remote machine is a linux machine. In my .bashrc I set my http_proxy variables to another proxy. In my terminal, these variables are correctly set, but I don't think that VSCode sees them.
Solution: Go to preferences, open the Remote
settings tab and configure:
Http: Proxy Support
as override
Http: Proxy as my remote http proxy
. When I set an https proxy url here, it failed.
proxyStrictSSL
is set as false
Maybe VSCode Remote Extensions will asks for your password a lot of times. Better to configure your ssh keys.
Answered By - neves Answer Checked By - Katrina (WPSolving Volunteer)