How to Install Visual Studio Code Server

Code Server allow you to run Microsoft Visual Studio Code in the browser. Code Server runs on a remote web server, you can access it by going to special url. This allow business to move development environment to cloud, deploy new developer environment on cloud or on premise server quickly with automation tools. Developers can access their secure work environment from any device that have a web browser and internet connection. This is helpful when employees work remotely so all code/files stay on the cloud instead of developers local computer.

Install Code Server

You can download latest version of Code Server from

To install Code Server 3.5.0, run

To start code server, run

Visual Studio Code Server

This will make code server listen to port 10090 on all IP address configured on the server.

You can access the code server at

You can find password to login in file ~/.config/code-server/config.yaml

Visual Studio Code Server

If you don’t want to auto start code server on server boot, you can run the command in tmux or screen.

Enable SSL for Code Server

You can get Free SSL certficate using LetsEncrypt.

Once you got SSL certficate for your domain, you need to do the following. This this example, i use domain and user “boby”.

Copy SSL to users directory, so code server can access it.

Create Systemd service file to autostart code server

create file


Start Code Server

To start code server, run a user root

To get Password to login to code server, run

If you want to change password, you can edit the file and restart code server with

Update SSL

LetsEncrypt SSL expire every 90 days and renew the SSL certificate every month. We will copy over the SSL certficate using a cronjob and restart code server every week.

create file

Add following

Make it executable

Create cron job


Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *