5

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?

rioV8
  • 24,506
  • 3
  • 32
  • 49
neves
  • 33,186
  • 27
  • 159
  • 192

2 Answers2

5

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.

neves
  • 33,186
  • 27
  • 159
  • 192
0

If your remote machine do not have internet access, you can try copying the extensions on your local host to the remote host.

scp -r ~/.vscode/extensions/ remote-host-name:.vscode-server/
Jinguo Liu
  • 665
  • 6
  • 8