---
title: "Host a Dev Environment on Render with VS Code and Tailscale"
description: "A self-hosted cloud dev environment can run on Render as a private service, reached over a Tailscale subnet router and edited with VS Code's Remote-SSH extension. code-server works and installs as a PWA, but it lacks some extensions."
url: "https://swe.quest/articles/host-a-dev-environment-on-render-with-vs-code-and-tailscale-6236fb7c08487752"
canonical: "https://render.com/blog/host-a-dev-environment-on-render-with-vs-code-and-tailscale"
source: "Render"
published: "2021-10-06"
difficulty: "medium"
kind: "How-to"
reading_minutes: 17
tags: ["developer-tools","containers","networking","cloud","identity-auth"]
---

# Host a Dev Environment on Render with VS Code and Tailscale

A post on [Render](https://swe.quest/sources/render.md), published 2021-10-06, 17 min read, How-to. Original: [https://render.com/blog/host-a-dev-environment-on-render-with-vs-code-and-tailscale](https://render.com/blog/host-a-dev-environment-on-render-with-vs-code-and-tailscale)

## Summary

A self-hosted cloud dev environment can run on Render as a private service, reached over a Tailscale subnet router and edited with VS Code's Remote-SSH extension. code-server works and installs as a PWA, but it lacks some extensions. OpenSSH fails in Render's unprivileged containers because privilege separation needs CAP\_SYS\_CHROOT, so dropbear serves SSH instead, with SSH agent forwarding for GitHub authentication. A persistent disk mounted at /home keeps repos, caches and the VS Code binaries across deploys, and a start script recreates authorized\_keys at runtime so the mount doesn't overwrite it.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- SSH and key-based auth ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- VPN concepts

## Keywords

Render, Tailscale, VS Code Remote-SSH, code-server, dropbear, OpenSSH, Docker

## Related posts

- [Use One-Click Deploys for Secure Online VS Code](https://swe.quest/articles/use-one-click-deploys-for-secure-online-vs-code-7d82fbb266e3409d.md): Render · 2021-11-18 · Medium · 6 min read · Infrastructure as code, Deployment, Developer tools, Cloud platforms
  OpenVSCode Server can be deployed on Render by forking Gitpod's repo, adding a minimal Dockerfile that pulls the published image, and defining a persistent disk mount in a render.yaml Blueprint.
- [Remote Debugging with SSH and VS Code](https://swe.quest/articles/remote-debugging-with-ssh-and-vs-code-d3c247b65e523308.md): Render · 2022-02-23 · Medium · 7 min read · Debugging, JavaScript, Developer tools, Networking
  A Node.js process running on Render can be debugged from a local VS Code instance by starting it with \`node --inspect=9229\` and forwarding the debug port over an SSH tunnel (\`ssh -N -L 9229:localhost:9229\`).
- [GitHub’s Engineering Team has moved to Codespaces](https://swe.quest/articles/github-s-engineering-team-has-moved-to-codespaces-1bb37c0be0b5fad7.md): GitHub Engineering · 2021-08-11 · Medium · 9 min read · Developer productivity, Developer tools, Containers, Cloud platforms
  GitHub moved development of its 14-year-old, 13 GB github/github monolith from bespoke macOS laptops to cloud-hosted Codespaces, replacing fragile local environments with disposable, task-per-branch dev environments.
- [How to add Monaco to a Next.js app and securely run untrusted user code](https://swe.quest/articles/how-to-add-monaco-to-a-next-js-app-and-securely-run-untrusted-user-code-1a2e3adbb0c82f79.md): Deno · 2024-02-29 · Medium · 9 min read · React, Sandboxing & isolation, Serverless, Frontend, JavaScript
  A Next.js 14 app can host a browser IDE by embedding the Monaco editor via @monaco-editor/react, then sending the editor contents to server-side API routes that call the Deno Deploy Subhosting API.
- [...It Works Fine Locally](https://swe.quest/articles/it-works-fine-locally-7a80ae0fb96b33a9.md): Render · 2022-08-10 · Medium · 7 min read · Deployment, Cloud platforms, Configuration management
  A deployment checklist for apps that run locally but fail in the cloud, drawn from Render support cases.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
