Skip to content

Support VSCode Remote Server offline package. #1802

Open

Description

@Phelexand

It's perfect when linking the Internet. It made me tied,When I have a environment for develop of apps on GNU/Linux, that is a sandbox offline with the Internet. My windows is offline as a sandbox also. I have to modify the extensions, and try to find the numbers of vscode remote server in the insider version. When I put the remote-server package to $HOME/.vscode-server, it runs uncompletely. RSA key is not effective on Remote.
For what I want, vscode-server (offline) is supported as VSCode. I can install them as a software suits,which has a client and server. Thank you for your pleasure.

Activity

  1. chrmarti commented on Nov 8, 2019

    @chrmarti
    Contributor

    Is this for SSH, Docker or WSL?

  2. added
    feature-request
    info-needed
    on Nov 8, 2019
  3. LaurentLesle commented on Nov 11, 2019

    @LaurentLesle

    Docker and SSH would be great.

  4. IgnusG commented on Nov 20, 2019

    @IgnusG

    Just stumbled across this. Currently sitting in a coffee shop with horrible internet and cannot start VS Code with Remote WSL since it tries to download the server and fails after some time.

    A fallback to an older "already downloaded" version or something similar would be a life saver.

  5. Phelexand commented on Nov 27, 2019

    @Phelexand
    Author

    Is this for SSH, Docker or WSL?
    SSH is what i met. Docker will meet it, when I was offline, even VS Remote SSH has download before.

  6. Phelexand commented on Nov 27, 2019

    @Phelexand
    Author

    Just stumbled across this. Currently sitting in a coffee shop with horrible internet and cannot start VS Code with Remote WSL since it tries to download the server and fails after some time.

    A fallback to an older "already downloaded" version or something similar would be a life saver.

    Emm, it's same of #1242 but more. Not only offline client, but offlice server also. I'can make my machine linking all the time and more docker and virtual machines was created when offline.

  7. MAHDTech commented on Dec 22, 2019

    @MAHDTech

    +1 for SSH & Docker support offline.

    It would be great if there was the ability to transfer the required software from the connecting client to the remove host. Particularly useful for air gapped environments where the client could be pre-seeded with the dependencies before connection.

  8. Perseid commented on Jan 5, 2020

    @Perseid

    I also have the use case of an air gapped network with no internet connection. I am connecting from one machine in the air gapped network to another via SSH.
    I would propose the approach the C++ extension has taken of having additional releases with all the otherwise downloaded binaries bundled in a single vsix: https://github.com/microsoft/vscode-cpptools/releases

  9. avivdolev commented on Feb 26, 2020

    @avivdolev

    Hi,
    I think this issue is similar to #1399 and #1242

    Any chance to see this feature in near releases?

    Thanks!

  10. Phelexand commented on Mar 1, 2020

    @Phelexand
    Author

    Hi,
    I think this issue is similar to #1399 and #1242

    Any chance to see this feature in near releases?

    Thanks!

    no more, thanks.

  11. haherhohu commented on Jun 17, 2020

    @haherhohu

    +1 for SSH support offline.

    I'm working in intranet-base environment.
    Then, I can't download remote-server packages...

  12. added
    ssh
    and removed
    info-needed
    on Jun 25, 2020
  13. jheaff1 commented on Sep 14, 2020

    @jheaff1

    +1 for fully offline Remote (SSH, Docker) support

  14. amazingmo commented on Sep 23, 2020

    @amazingmo

    +1 for me too, exactly the same thing, using remote SSH in an offline environment. + 6 for my colleagues who will complain at me about this but won't bother to write a short note asking for help.

  15. BassTester commented on Mar 17, 2021

    @BassTester

    +1, no easy way to set this up in intranet setting

  16. tabarnakos commented on Mar 29, 2022

    @tabarnakos

    +1 for support of remote shh + docker + offline vscode extension support. We want to use a server which is not connected to the internet to develop applications, because it has 80 cores and is connected to special hardware.

  17. BassTester commented on Mar 29, 2022

    @BassTester

    Here's the workaround we've used to get this working without internet.

    To download the server:
    wget  https://update.code.visualstudio.com/commit:${​commit_id}​/server-linux-x64/stable

    on remote host you want to connect to:
    mkdir -p ~/.vscode-server/bin/${​commit_id}​
    assuming that you upload vscode-server-linux-x64.tar.gz to /tmp dir
    tar zxvf /tmp/vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${​commit_id}​ --strip 1
    touch ~/.vscode-server/bin/${​commit_id}​/0
    your directory should look like this:
    user@server$ pwd
    /home/user/.vscode-server/bin/${​commit_id}​
    user@server$ ls
    0        bin         node          out           product.json
    LICENSE  extensions  node_modules  package.json  server.sh

    The ‘0’ file is important – will mark that the server was “downloaded” and the client will use it instead of redownloading.

  18. roblourens commented on Dec 17, 2022

    @roblourens
    Member

    For SSH, connecting to an offline host should work, and for an offline client, there is this issue: #1242

  19. added
    wsl
    and removed
    ssh
    on Dec 17, 2022
  20. KholdStare commented on Sep 26, 2023

    @KholdStare

    It is quite ridiculous that even though I have connected to the same Docker container hundreds of times before and should presumably have a cached copy of the VSCode server locally, I cannot connect to it when offline. The fact that I need an internet connection for something that is entirely local is mind boggling.

    If I am on the go, in an airplane, or in a cafe and don't want to use the public Wifi, tools should work without a constant internet connection.

    Please please fix this, this is embarassing!

  21. SunXuan90 commented on Jan 18, 2024

    @SunXuan90

    Here's the workaround we've used to get this working without internet.

    To download the server: wget  https://update.code.visualstudio.com/commit:${​commit_id}​/server-linux-x64/stable

    on remote host you want to connect to: mkdir -p ~/.vscode-server/bin/${​commit_id}​assuming that you upload vscode-server-linux-x64.tar.gz to /tmp dir tar zxvf /tmp/vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${​commit_id}​ --strip 1 touch ~/.vscode-server/bin/${​commit_id}​/0 your directory should look like this: user@server$ pwd /home/user/.vscode-server/bin/${​commit_id}​user@server$ ls 0        bin         node          out           product.json LICENSE  extensions  node_modules  package.json  server.sh

    The ‘0’ file is important – will mark that the server was “downloaded” and the client will use it instead of redownloading.

    This doesn't work anymore with latest release. Here is another workaround but I didn't succeed.

  22. 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!!

  23. mboeker commented on Feb 2, 2026

    @mboeker

    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

    feature-requestwsl

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions