⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@DakotaB75
Copy link
Contributor

@DakotaB75 DakotaB75 commented Dec 26, 2025

Documents the ability to connect to a WSL distribution over an existing SSH connection, introduced in VS Code 1.89.

The content is added to the WSL Remote documentation and is based on existing release notes and behavior.

Documentation-only change.

Fixes #7320

Documents the ability to connect to a WSL distribution over an existing SSH connection, introduced in VS Code 1.89.

The content is added to the WSL Remote documentation and is based on existing release notes and behavior.

Documentation-only change.
Copy link
Contributor

@ntrogh ntrogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DakotaB75 Please apply requested changes. In general, keep the updates concise and don't introduce unnecessary explanations and subsections.


Starting with VS Code 1.89, it is possible to connect to a WSL distribution over an existing SSH connection.

This workflow is useful when you are already connected to a remote machine using **Remote - SSH** and want to work inside a WSL environment hosted on that machine.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this line for conciseness


This workflow is useful when you are already connected to a remote machine using **Remote - SSH** and want to work inside a WSL environment hosted on that machine.

#### Prerequisites
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop the prereqs section

- Remote - SSH extension
- WSL installed and configured on the remote machine

#### Connect to WSL over SSH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this heading to keep everything under the main H3 heading


#### Connect to WSL over SSH

1. Connect to the remote machine using **Remote - SSH**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Connect to the remote machine using **Remote - SSH**.
1. Connect to the remote machine using the [Remote - SSH extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh).

#### Connect to WSL over SSH

1. Connect to the remote machine using **Remote - SSH**.
2. Open the Command Palette (`kbstyle(F1)`) and run:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Open the Command Palette (`kbstyle(F1)`) and run:
2. Run the **WSL: Connect to WSL using Distro** command from the Command Palette (`kb(workbench.action.showCommands)`).

1. Connect to the remote machine using **Remote - SSH**.
2. Open the Command Palette (`kbstyle(F1)`) and run:

**Remote-WSL: Connect to WSL using SSH**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Remote-WSL: Connect to WSL using SSH**

**Remote-WSL: Connect to WSL using SSH**

3. Select the target WSL distribution.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, select the remote WSL in the Remote Explorer view.


VS Code will open a new window connected to the selected WSL environment over the existing SSH session.

This setup combines **Remote - SSH** and **Remote - WSL**, enabling a seamless development experience with Linux tooling inside WSL while working on a remote host.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to use WSL over SSH connection

2 participants