> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepest.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Use VS Code Remote SSH

> Configure VS Code against a Computer's standard SSH endpoint and understand the compatibility and lifecycle boundaries.

VS Code Remote SSH is a standard-tool integration path for working with files and tools inside a Deepest Computer. Deepest supplies the SSH endpoint, public-key authorization, remote command execution, and local TCP forwarding. VS Code installs and operates its own remote components.

Deepest exposes standard OpenSSH, so VS Code Remote - SSH can connect using the same host, user, port, and key as your terminal. VS Code, Remote - SSH, and other extensions are third-party software; their current guest requirements and architecture support still apply.

## Establish SSH first

Before configuring the IDE, confirm this works from your local terminal:

```bash theme={null}
ssh -i "$HOME/.ssh/deepest_ed25519" -o IdentitiesOnly=yes \
  -p <SSH_PORT> <SSH_USER>@<SSH_HOST> 'uname -s; command -v bash'
```

Use the current endpoint returned by the Console or `computer.ssh.endpoint()`. Expect `Linux` and a shell path. See [SSH](https://docs.deepest.dev/connect/ssh.md) for key authorization and host-key handling.

The Computer must remain Running and have enough available memory and disk for the repository, language server, extensions, and any builds. The smallest platform memory size is not a recommendation for an IDE workload. Inspect [Account resources](https://docs.deepest.dev/concepts/account-resources.md) and the IDE's current requirements.

## Add a local host entry

Add this to your local `~/.ssh/config`:

```sshconfig theme={null}
Host deepest-work
  HostName <SSH_HOST>
  Port <SSH_PORT>
  User <SSH_USER>
  IdentityFile ~/.ssh/deepest_ed25519
  IdentitiesOnly yes
  HostKeyAlias deepest-<COMPUTER_ID>
```

Replace every placeholder, then run `ssh deepest-work`. Do not proceed until that command connects to the intended Computer.

## Open the remote folder

Install VS Code and Microsoft's **Remote - SSH** extension locally. Use its command palette action **Remote-SSH: Connect to Host...**, choose `deepest-work`, and select Linux if asked.

The extension may download its server components and request a remote folder. Open the repository's **Guest path**, for example `/root/projects/my-project`. That folder must already exist or be created in the Computer. Remote SSH does not automatically synchronize a same-named folder on your laptop.

In the VS Code integrated remote terminal, run:

```bash theme={null}
uname -s
pwd
git status --short
```

Verify that you are in Linux and the intended repository. A connected IDE window is not proof that repository dependencies, tests, or third-party authentication are ready.

The official [VS Code Remote SSH guide](https://code.visualstudio.com/docs/remote/ssh) maintains the IDE's installation steps, host requirements, and extension behavior.

## Work with applications and containers

The integrated terminal runs commands on the Computer. For a web app, start its server there and use [Private Preview](https://docs.deepest.dev/network/private-preview.md) or an explicitly configured [SSH local tunnel](https://docs.deepest.dev/connect/port-forwarding.md).

The Developer Image also includes Docker and the Dev Container CLI. You can use a repository's `.devcontainer/devcontainer.json` within the Computer. VS Code's Dev Containers extension is a separate layer with its own requirements; see [Docker and Dev Containers](https://docs.deepest.dev/environment/docker-and-dev-containers.md). An arbitrary local directory cannot be bind-mounted into a remote container as if it were already on the Computer.

## Identity, storage, and stopping

An IDE session edits real files on the Computer. Save work and commit or export it when appropriate. A normal Stop retains those files and installed tools, while terminating the live session and processes. Reconnect after an explicit Start; do not expect in-memory editor or language-server state to survive a cold boot.

Fetch the current endpoint and update `HostName` or `Port` if connection details change. The stable Computer ID and its host-key continuity identify the original Computer. A Clone requires separate authorization and a separate host alias.

Disconnecting VS Code does not Stop the Computer. Builds, language servers, or other programs may keep consuming resources. Use the Computer lifecycle controls when the environment should stop running.

## Troubleshoot before reinstalling

| Symptom | Diagnostic step |
| - | - |
| IDE cannot connect | Run `ssh deepest-work` outside VS Code first |
| SSH works; remote component install fails | Read the Remote SSH output log; check download access, writable disk and supported architecture |
| Extension works locally but fails remotely | Confirm where it is installed and whether its native binaries support the Guest architecture |
| Repository is missing | Check the remote path; local folders were not automatically copied |
| IDE or language server exits | Inspect memory, disk and application logs; compare active workloads against the shared pool |
| Connection fails after a restart | Refresh the SSH endpoint; inspect host-key warnings instead of disabling verification |

An Agent helping with this setup should identify the layer that failed and preserve the existing Computer. Do not recreate a Computer, erase the IDE server directory, or remove host-key records as an automatic first response.

Use [SFTP](https://docs.deepest.dev/connect/sftp.md) for an explicit file transfer, [Git and GitHub](https://docs.deepest.dev/environment/git-and-github.md) for repository setup, or [Quickstart](https://docs.deepest.dev/quickstart.md) for the primary supported first connection.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.