microsoft / microsoft/wslg

use mstcs over ssh tunnel as desktop for wslg

Open
#286 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
11.9k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

I use ssh to access my wsl instance from other systems. I'd like a way to have a rdp client on the remote machine be the display for WSLg

Describe the solution you'd like
Have a way to set WAYLAND_DISPLAY to the remote RDP client in a fashion similar to the way we set the display in X. Could involve 2 variables. Since wayland-0 on wslg is a socket shouldn't it be able to be a connection to a remote system / client that supports the protocol

I'd start my ssh session with port forwarding enabled and have the rdp client listen on localhost:port. I set the appropriate environment variables, and when i run a graphical client on my WSL instance the app launches in the rdp app on the client as a window, where the remote rdp client is treated as a desktop.

Describe alternatives you've considered
I used to use xrdp to get a full remote desktop

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are identified. Start by investigating how WSLg configures WAYLAND_DISPLAY and the wayland-0 socket, then determine whether SSH forwarding and a remote RDP client can support the requested connection. Done would mean WSLg graphical applications display as windows through the remote RDP client.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.