0% found this document useful (0 votes)
85 views8 pages

Installing VSCode Server On Remote Machine in Private Network (Offline Installation) - by Rahul Kumar - Medium

Uploaded by

Ching Charlotte
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views8 pages

Installing VSCode Server On Remote Machine in Private Network (Offline Installation) - by Rahul Kumar - Medium

Uploaded by

Ching Charlotte
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

Installing VSCode Server on Remote Machine


in Private Network (Offline Installation)
Rahul Kumar · Follow
3 min read · Sep 5, 2020

Listen Share

The Visual Studio Code Remote — SSH extension allows you to open a remote folder on
any remote machine, virtual machine, or container with a running SSH server and take
full advantage of VS Code’s feature set. Once connected to a server, you can interact with
files and folders anywhere on the remote filesystem.

No source code needs to be on your local machine to gain these benefits since the extension
runs commands and other extensions directly on the remote machine.

https://code.visualstudio.com/docs/remote/ssh

This article explains the steps to be followed to install VSCdoe and VSCode server in
a private network when we don’t have an internet connection in the local and
remote machine. We can do an offline installation in this scenario.

Terminology:

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 1/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

1. Local Machine (Local OS) → The system on which we will be running VSCode.
(No Internet Connection)

2. Remote Machine (Remote OS) → The system on which we will be running


Open in app Sign up Sign in
VSCode Server. (No Internet Connection)

Search
3. External Machine → The external system which we will use to download the
offline installers. This is the only machine we have an internet connection.

Steps for offline installation:


Step 1: Download the VSCode offline installer for your external machine from
https://code.visualstudio.com/#alt-downloads

Step 2: Transfer the offline installer file on your local machine and install it.

Step 3: Follow ssh host setup from the following link


https://code.visualstudio.com/docs/remote/ssh#_ssh-host-setup

If we don’t have an internet network on Remote Machine, then local machine will try to
download the VSCode server locally and then copy it to the remote machine and install it.
But if we don’t have an internet connection in the local OS then it will fail.

VSCode Error Message

Continue with the following steps to do the offline installation of VSCode Remote
Server

Step 4: Click on the Output tab to check for the logs. We can see it was not able to
download vscode server on the remote machine but it failed. Then as a fallback
option, it tried to download the vscode server on local machine which will then be
transferred to the remote machine. But that also failed because we don’t have an

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 2/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

internet connection on the local as well, Get the commit ID and destFolder from
logs.

OR

Connect to the remote machine and list the directories in the following directory to
get the commit ID

$ ls ~/.vscode-server/bin
c9a2f78283b6e5ef708fb8869e2a5adaa476e42f

Step 5: Download the offline installation version of vscode server externally using
the following link

For Stable Version

https://update.code.visualstudio.com/commit:{COMMIT_ID}/server-linux-x64/stable

For Insider Version

https://update.code.visualstudio.com/commit:{COMMIT_ID}/server-linux-
x64/insider

For example,

https://update.code.visualstudio.com/commit:c9a2f78283b6e5ef708fb8869e2a5adaa4
76e42/server-linux-x64/insider

Step 6: Transfer this file to the remote machine.


https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 3/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

Step 7: Extract the content of this file in the destFolder mentioned in the VSCode
logs.

Usually, it is

~/.vscode-server/bin/{COMMIT_ID}

To extract run the following commands

$ cd ~/.vscode-server/bin/c9a2f78283b6e5ef708fb8869e2a5adaa476e42f

$ tar -xvzf ~/vscode-server-linux-x64.tar.gz --strip-components 1


vscode-server-linux-x64/LICENSE
vscode-server-linux-x64/node
vscode-server-linux-x64/bin/
vscode-server-linux-x64/bin/code-insiders
vscode-server-linux-x64/server.sh
vscode-server-linux-x64/package.json
vscode-server-linux-x64/out/
vscode-server-linux-x64/out/nls.metadata.json
...
...
...

Now we are done with VSCode installation on the local machine and VSCode Server
on the remote machine. Go ahead and try to connect with remote machine as
mentioned here https://code.visualstudio.com/docs/remote/ssh#_connect-to-a-
remote-host

Vscode Ssh Remote Working Programming

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 4/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

Follow

Written by Rahul Kumar


13 Followers

Senior Software Engineer @ QuantumBlack, a McKinsey company

Recommended from Medium

Guillermo Quiros in ITNEXT

K8Studio Kubernetes IDE


It’s been an exhilarating journey since we first embarked on the K8studio project four years
ago. Although there were pauses along the way…

4 min read · Jan 17

596 9

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 5/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

Elevate Your Terminal: Exploring the Top Zsh Themes for a Stylish Shell Experience
A Anudeep Anisetty

Elevate Your Terminal: Exploring the Top Zsh Themes for a Stylish Shell
Experience
In the realm of command-line interfaces, the Zsh shell stands out for its flexibility and
extensibility. One of the delightful features of…

3 min read · Oct 14, 2023

Lists

General Coding Knowledge


20 stories · 828 saves

Coding & Development


11 stories · 400 saves

Stories to Help You Grow as a Software Developer


19 stories · 739 saves

ChatGPT
23 stories · 411 saves

How to fix Visual Studio Code with the Terminal code . command not working
Ab Abhishek Singh
How to fix Visual Studio Code with the Terminal code . command not
working
While I was in the midst of work, I encountered a problem while attempting to establish a
connection between my terminal and Visual Studio…

3 min read · Oct 15, 2023

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 6/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

How to Launch GUI Applications on a Remote Linux Server Using SSH ?


G Gopeshkhandelwal

How to Launch GUI Applications on a Remote Linux Server Using SSH ?


Introduction:

3 min read · Aug 15, 2023

Advanced End-to-End DevSecOps Kubernetes Three-Tier Project using AWS EKS,


ArgoCD, Prometheus…
A Aman Pathak in Stackademic

Advanced End-to-End DevSecOps Kubernetes Three-Tier Project using


AWS EKS, ArgoCD, Prometheus…
Project Introduction:

23 min read · 6 days ago

781 8

Port Forwarding in Windows and Ways to Set it Up


RE
REDFISH IA VEN

Port Forwarding in Windows and Ways to Set it Up


Learn how to set up port forwarding in Windows for remote access or to host servers. Follow
our guide to enable and configure it on your…

7 min read · Jul 31, 2023

55

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 7/8
2024/1/25 11:24 Installing VSCode Server on Remote Machine in Private Network (Offline Installation) | by Rahul Kumar | Medium

See more recommendations

https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 8/8

You might also like