Skip to content

Complete offline installation of VSCode Remote #1399

Open

Description

@hanxue

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:

  1. Bundle vscode-server for major platforms together with the extension
  2. 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

Activity

  1. added
    feature-request
    on Sep 12, 2019
  2. rfresow commented on Sep 30, 2019

    @rfresow

    This would be really great. Because of security most of our machines are not internet connected.

  3. avivdolev commented on Oct 10, 2019

    @avivdolev

    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:

    1. When trying to connect to a server, after failing to download the server side - just prompt the full download url.
    2. 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!

  4. yelled1 commented on Apr 30, 2020

    @yelled1

    I also would love to see this done. As, I have limited internet access on AWS local redhat machine.

  5. added
    containers
    on Jun 25, 2020
  6. ross-p-smith commented on Jun 25, 2020

    @ross-p-smith

    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)

  7. chrmarti commented on Jun 25, 2020

    @chrmarti
    Contributor

    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.

    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.com and az764295.vo.msecnd.net might be sufficient for the server download.

  8. The first time we are connecting to docker container using vscode the first message is Installing server:

    • image

    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.

  9. fsackur commented on Nov 10, 2020

    @fsackur

    Ross Smith (@ross-p-smith) you can get the commit ID from Help > About or from code -v

  10. Christiaan676 commented on Sep 8, 2023

    @Christiaan676

    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.

  11. Shawn1874 commented on Dec 1, 2025

    @Shawn1874

    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.

  12. mboeker commented on Feb 2, 2026

    @mboeker

    +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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    containersfeature-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions