You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this TPI you'll test a fallback option for installing extensions that Remote - SSH utilizes.
Prerequisite
Set up some remote host that does not have outbound access to the internet. The remote needs to fail to download extensions from the internet when initialized.
Here are some options of how to do that:
[Option 1] Use a docker container as your remote
Here's a pre-made docker configuration that should work as your "remote" machine to SSH to.
The SSH server listens on 'localhost' post 1234.
[Option 2] Firewall on a linux VM
An easy way to block network access on a linux box is to install ufw (uncomplicated firewall) and run the commands:
sudo apt install ufw # or similar for your distro
sudo ufw status allow 22
sudo ufw default deny outgoing
sudo ufw status verbose # check your firewall rules (make sure you don't block inbound ssh!)
sudo ufw enable
[Option 3] Block DNS requests
You should also be able to emulate this issue if you aren't able to resolve the DNS name marketplace.visualstudio.com on the remote. You'll still need to be able to resolve this on the local side.
TPI Steps
Ensure you don't have any extensions cached by deleting ~/.vscode-server-insiders on your remote machine
Add some marketplace extensions to the remote.SSH.defaultExtensions setting. For example, in settings.json:
Refs: microsoft/vscode-remote-release#9090
Complexity: 4
Create Issue
In this TPI you'll test a fallback option for installing extensions that Remote - SSH utilizes.
Prerequisite
Set up some remote host that does not have outbound access to the internet. The remote needs to fail to download extensions from the internet when initialized.
Here are some options of how to do that:
[Option 1] Use a docker container as your remote
Here's a pre-made docker configuration that should work as your "remote" machine to SSH to.
The SSH server listens on 'localhost' post 1234.
[Option 2] Firewall on a linux VM
An easy way to block network access on a linux box is to install
ufw
(uncomplicated firewall) and run the commands:[Option 3] Block DNS requests
You should also be able to emulate this issue if you aren't able to resolve the DNS name
marketplace.visualstudio.com
on the remote. You'll still need to be able to resolve this on the local side.TPI Steps
~/.vscode-server-insiders
on your remote machineremote.SSH.defaultExtensions
setting. For example, insettings.json
:3 Connect to the host with Remote - SSH.
4. Confirm that the extensions eventually install
You'll see similar messages in the window log
Somewhere on the remote machine you should expect there to be logs with the string
Relaying the following extensions to install later
.If you encounter any issues, please share both your 'window' log, Remote - SSH output log, and any logs on your remote machine similar to above
The text was updated successfully, but these errors were encountered: