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
{{ message }}
Repository navigation
Complete offline installation of VSCode Remote #1399
In continuation of #15 , I think VSCode Remote is stable enough now and we ought to re-visit this issue.
Use Case
Install VSCode Remote on machines without Internet connectivity
Possible solutions:
Bundle vscode-server for major platforms together with the extension
Have an option within the Remote extension to download vscode-server for the remote machine's platform, and scp vscode-server to the remote machine prior to installation
Reacted by Richard Fresow, hung135, Gudjon, Chris, Thomas Calmant, Mike Powers, Jiangwei Lu, Darrian, Ryan Wu, Matthew and 56 more
Hey,
This would be great - Our entire network is on-premise without any internet access for security reasons.
We download all files in advance and copy them to the network after scanning them - that's how we update VSCode itself and any extension (.vsix files).
I'd like to add that even a very simple solution would suffice as a start:
When trying to connect to a server, after failing to download the server side - just prompt the full download url.
Allow an option similar to "Install from .vsix", and let us just point at the tarball location on the host (to be copied to the server with scp). This option will help for those who can setup a VM with same configuration as the offline server, and just copy the downloaded file to the offline host (without copying long download urls).
I know it's far from perfect, but it'll give a very good temporary solution :)
Thanks a lot for a great extension!
Reacted by Ryan Wu, Ross Smith, Shrikant Chaudhari, studiodreamz, 100441800 and Martin Ananda Boeker
Another customer here with the same issue. VSCode is packaged by internal IT and approval requested, after approval software appears in Software and developers can install. The Remote extension is approved separately and placed in an internal software repository (product name not important). All docker/npm/nuget are retrieved from here and not the internet. Once the remote extension is installed it will need to connect to a host. Now the host or the client will not have internet access to download vscode-server (as detailed in this excellent answer: - https://stackoverflow.com/questions/56718453/using-remote-ssh-in-vscode-on-a-target-machine-that-only-allows-inbound-ssh-co/56781109#56781109). At the moment, we are failing a "Remote attach", capturing the Commit ID, making a request for someone to download the vscode-server to the repository. It would be great if we knew the CommitID of the vscode-server when IT packaged vscode as they could package the server element at the same time. Currently everything breaks when someone upgrades vscode, which means people dont upgrade! Christof Marti (@chrmarti)
The commit id is the same as for VS Code. That can be lookup in VS Code under Help > About.
Discussed this further Ross Smith (@ross-p-smith) and the offline scenario would be greatly simplified if:
There were download links for the server(s) on code.visualstudio.com too.
There was an easy way for placing the server tars locally so they get picked up by the Remote-Containers extension.
A server tar can be manually placed in the local filesystem at <tmpdir>/vsch/<commitid>/<filename>.tar.gz. Where <tmpdir> is the temp folder given in one of the TMPDIR, TMP or TEMP env variables.
The first time we are connecting to docker container using vscode the first message is Installing server:
It spends 2 large minutes in my case.
It could be great if we have an option to pre-built this step Installing server early
e.g. from Dockerfile to build the image with vscode-server installed
So, the first time that we will connect the time will be just a few seconds instead.
There is a setting: "Remote.SSH: Local Server Download" that you can configure to download the server to your PC and upload it to the remote server. It now downloads the server in /tmp/vsch-<username>/serverCache/<vscode hash>/ if you could configure the location, it would be trivial to manually download the server and place it in the correct location.
If so then where is the .vsix file for the extension pack to begin with? Second, It's not clear to me what vs code server has to do with this. It's not one of the 4 items in the remote development pack.
+1 for this.
Both the workstation and the target server are offline.
Digging through the internet and guessing at the VSIX name makes it possible to install the extension on the workstation (why not just provide a vsix link???).
The very cumbersome steps with downloading vscode-server-linux.tar.gz and vscode-cli-alpine.tar.gz are a huge mess, and they don't seem to work half the time, even with doing some nonsense about touching .done files.
There MUST be a simpler way to get the ssh extension working in an airgapped environment!!
Even when I unzip the necessary files with the correct commit hash to ~/.vscode-server on the offline target system, the very first thing that vscode does is delete it and then try to download it from the internet, no matter what remote.SSH.localServerDownload is set to.
This whole process cannot possibly be as annoying as it seems..
Activity
rfresow commentedon Sep 30, 2019
This would be really great. Because of security most of our machines are not internet connected.
avivdolev commentedon Oct 10, 2019
Hey,
This would be great - Our entire network is on-premise without any internet access for security reasons.
We download all files in advance and copy them to the network after scanning them - that's how we update VSCode itself and any extension (.vsix files).
I'd like to add that even a very simple solution would suffice as a start:
I know it's far from perfect, but it'll give a very good temporary solution :)
Thanks a lot for a great extension!
yelled1 commentedon Apr 30, 2020
I also would love to see this done. As, I have limited internet access on AWS local redhat machine.
ross-p-smith commentedon Jun 25, 2020
Another customer here with the same issue. VSCode is packaged by internal IT and approval requested, after approval software appears in Software and developers can install. The Remote extension is approved separately and placed in an internal software repository (product name not important). All docker/npm/nuget are retrieved from here and not the internet. Once the remote extension is installed it will need to connect to a host. Now the host or the client will not have internet access to download vscode-server (as detailed in this excellent answer: - https://stackoverflow.com/questions/56718453/using-remote-ssh-in-vscode-on-a-target-machine-that-only-allows-inbound-ssh-co/56781109#56781109). At the moment, we are failing a "Remote attach", capturing the Commit ID, making a request for someone to download the vscode-server to the repository. It would be great if we knew the CommitID of the vscode-server when IT packaged vscode as they could package the server element at the same time. Currently everything breaks when someone upgrades vscode, which means people dont upgrade! Christof Marti (@chrmarti)
chrmarti commentedon Jun 25, 2020
The commit id is the same as for VS Code. That can be lookup in VS Code under Help > About.
Discussed this further Ross Smith (@ross-p-smith) and the offline scenario would be greatly simplified if:
A server tar can be manually placed in the local filesystem at
<tmpdir>/vsch/<commitid>/<filename>.tar.gz. Where<tmpdir>is the temp folder given in one of theTMPDIR,TMPorTEMPenv variables.A simpler approach would be allow-listing the hostnames needed for downloading the server tars. See https://code.visualstudio.com/docs/setup/network and microsoft/vscode-docs#3818.
update.code.visualstudio.comandaz764295.vo.msecnd.netmight be sufficient for the server download.moylop260 commentedon Jul 6, 2020
The first time we are connecting to docker container using vscode the first message is
Installing server:It spends 2 large minutes in my case.
It could be great if we have an option to pre-built this step
Installing serverearlye.g. from Dockerfile to build the image with vscode-server installed
So, the first time that we will connect the time will be just a few seconds instead.
fsackur commentedon Nov 10, 2020
Ross Smith (@ross-p-smith) you can get the commit ID from Help > About or from
code -vChristiaan676 commentedon Sep 8, 2023
There is a setting: "Remote.SSH: Local Server Download" that you can configure to download the server to your PC and upload it to the remote server. It now downloads the server in
/tmp/vsch-<username>/serverCache/<vscode hash>/if you could configure the location, it would be trivial to manually download the server and place it in the correct location.Shawn1874 commentedon Dec 1, 2025
It's not clear to me whether this question relates to mine. Is this related to this extension pack? https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack&ssr=false#overview
If so then where is the .vsix file for the extension pack to begin with? Second, It's not clear to me what vs code server has to do with this. It's not one of the 4 items in the remote development pack.
mboeker commentedon Feb 2, 2026
+1 for this.
Both the workstation and the target server are offline.
Digging through the internet and guessing at the VSIX name makes it possible to install the extension on the workstation (why not just provide a vsix link???).
The very cumbersome steps with downloading vscode-server-linux.tar.gz and vscode-cli-alpine.tar.gz are a huge mess, and they don't seem to work half the time, even with doing some nonsense about touching .done files.
There MUST be a simpler way to get the ssh extension working in an airgapped environment!!
Even when I unzip the necessary files with the correct commit hash to ~/.vscode-server on the offline target system, the very first thing that vscode does is delete it and then try to download it from the internet, no matter what
remote.SSH.localServerDownloadis set to.This whole process cannot possibly be as annoying as it seems..