In this post, I will show you how to run Visual Studio Code on a remote server with Ubuntu. This is useful when you want to develop on a remote server with more resources than your local machine.


  • A remote server with Ubuntu installed


  • Install the code-server package on your remote server:
curl -fsSL | sh
  • Edit the ~/.config/code-server/config.yaml file to set bind address to
bind-addr: # instead of
# NOTE: Optionally update the password
  • Start the code-server service:
sudo systemctl enable --now code-server@$USER
  • Open a browser and navigate to http://<your-server-ip>:8080 to access Visual Studio Code running on your remote server.