8

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?

3 Answers 3

10

Here is an improved version of the text:

From my understanding, my local machine downloads the extension code and transfers it to the remote machine. However, there are only a few extensions that attempt to download data directly from the internet.

The primary cause of this failure is that my local machine cannot access the internet directly. My local machine runs on Windows and has a local cntlm proxy running. Usually, restarting my local proxy resolves the issue.

Remote SSH works seamlessly, and I can download extensions using this proxy.

My remote machine runs on Linux. In my .bashrc file, I set my http_proxy and https_proxy variables to another proxy. These variables are correctly set in my terminal, but I don't think VSCode recognizes 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 to false

If VSCode Remote Extensions annoy you prompting for your password multiple times. It's better to configure your SSH keys for the remote machine.

Sign up to request clarification or add additional context in comments.

Comments

5

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/

Comments

1

I copy my .vscode/extensions to my .vscode-server/ directory. It works for me.

cp -rf .vscode/extensions ../.vscode-server/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.