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) - by Rahul Kumar - Medium
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)
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.
Step 2: Transfer the offline installer file on your local machine and install it.
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.
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
https://update.code.visualstudio.com/commit:{COMMIT_ID}/server-linux-x64/stable
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 7: Extract the content of this file in the destFolder mentioned in the VSCode
logs.
Usually, it is
~/.vscode-server/bin/{COMMIT_ID}
$ cd ~/.vscode-server/bin/c9a2f78283b6e5ef708fb8869e2a5adaa476e42f
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
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
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…
Lists
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…
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
781 8
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
https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 8/8