SSHDESK: a remote desktop drawn inside an SSH terminal, with the host's security boundary left in place
A full interactive remote desktop delivered entirely through SSH and displayed directly in your terminal.
At a glance
- What is it?
- SSHDESK is a Python project that launches a graphical desktop as an OpenSSH forced command and draws it in the client's terminal, with no VNC or RDP listener and no extra port. This review covers the forced-command setup, the two renderers, the Linux display backends and the points where Windows and macOS hosts fall short.
- Who is it for?
- SSHDESK suits people who already live in an SSH terminal and want a Linux desktop on the same connection, including as a visual surface for an AI agent. It is the wrong tool for a Windows host, where forced-command capture is still experimental, and for any account whose login you cannot treat like physical console access.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 95 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- rylena/sshdesk542 ★ · +13
| Repository | 2026-09-18 | 2026-11-25 |
|---|---|---|
| rylena/sshdesk | 529 | 542 |
13 Stars in the last 68 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
OpenSSH launches the desktop as a forced command, so the ssh command picks the mode
SSHDESK does not run its own server. OpenSSH authenticates the user and starts SSHDESK as a forced command, and the graphical desktop then appears inside that same terminal. The client side is the ssh binary you already have, and the account name and trailing word select what you get:
ssh [email protected]
ssh -t [email protected] shell
ssh -t [email protected] desktopThe first form opens the SSHDESK desktop, which is the default. The second, with shell as the command, gives a normal login shell on the same account, and the third selects the desktop explicitly. That matters because a forced command would otherwise lock the account out of an ordinary shell.
The consequence is that your authentication story is whatever your sshd already does. The README says there is no second password database. It also means a mistake in the forced-command configuration can cut you off from the machine, which is why the project warns you to keep a second administrative login available while you configure it. The repository includes scripts/configure-sshd.sh for generating the sshd config fragment, and the manual path runs sshd -t before reloading.
Input, pixels and cleanup all share one SSH PTY, which bounds what the client can show
Keyboard, mouse, resize events, changed pixels and session cleanup all travel through a single SSH PTY. The README lists what is absent as a result: no browser, custom SSH client, VNC or RDP listener, second password database, web server, or additional network port. For a locked-down host that only exposes port 22, that is the whole appeal.
Because pixels travel as terminal output, quality depends on the client terminal. Kitty, Ghostty and WezTerm receive sharp real-pixel tiles, delivered as palette-compressed PNG through the Kitty graphics protocol, including tmux passthrough. Every ordinary ANSI terminal gets the lower-resolution colour-cell renderer, so OpenSSH, PuTTY, mobile clients and embedded SSH terminals still work, with fallbacks from true colour through 256 and 16 colours down to Unicode and ASCII.
The active targets are 60 FPS for sharp rendering and 30 FPS for ANSI, with adaptive idle presentation. The scheduler keeps only the latest frame and drops stale work instead of accumulating latency, so on a slow link you see a lower frame rate and not a growing delay. Static frames are suppressed and only changed tiles or cells are sent.
Anyone who can log in can drive the screen, and there is no separate remote-desktop credential
The README's warning is direct: anyone who can authenticate to an SSHDESK account can see and control the active graphical session, and you should treat it like physical console access. There is no per-session password and no view-only mode described in the README, so the SSH account is the entire access control.
The practical rules follow from that. Use key-based authentication and restrict who has keys, because a leaked key is equivalent to someone sitting at the keyboard. Do not reuse a shared account for SSHDESK. If an agent has the login, it has the same control a human would. The input side makes this concrete: the feature list includes Ctrl, Alt and Shift combinations, arrows, navigation keys, F1 to F12, mouse movement, left, right and middle click, drag and wheel scrolling.
The project also notes that the terminal is restored and held input is released after disconnects or crashes. That stops a dropped connection from leaving a modifier key stuck down on the host. It does not close the session on the host side; the README says the active graphical session is what you are controlling, so a disconnect does not by itself lock the screen.
Each Linux display stack needs its own capture and input tool
On Linux the installer supports common distributions and needs Python 3.10 or newer, a working Python venv, an OpenSSH server and tools for the active display stack. The README's table assigns one capture and input path per session type:
X11 on any desktop captures with FFmpeg/XCB, MIT-SHM or Pillow/XCB and sends input through XTest. wlroots compositors such as Sway and Hyprland capture with grim and use ydotool with ydotoold. GNOME Wayland uses a persistent Mutter stream through PipeWire and GStreamer, with input through the Mutter RemoteDesktop API. KDE Plasma Wayland captures with spectacle and uses ydotool and ydotoold.
For a manual GNOME install you need PyGObject, GStreamer base introspection and the GStreamer PipeWire plugin. Other Wayland desktops need their capture command plus ydotool 1.0.4 or newer. FFmpeg, NumPy and OpenCV are X11 acceleration paths and are optional.
Non-GNOME Wayland input requires ydotoold access to /dev/uinput, and the README says not to run the whole SSHDESK server as root. If an older install closes with a Wayland capture error or looks like a slow screenshot slideshow, log into the graphical desktop locally and rerun the one-line installer, which upgrades GNOME to the PipeWire backend and checks a real frame.
Windows hosts are experimental for forced-command capture, and macOS asks for permissions
The installer covers Linux, macOS and Windows 10 and 11, but the README does not claim the three are equal. Linux remains the recommended SSHDESK host, while any OS can be the SSH client.
On macOS, the OS still asks for Screen Recording and Accessibility access. Those are prompts a person has to answer at the machine, so you cannot finish a macOS setup purely over SSH. The pyproject.toml has a macos extra that pulls in pyobjc-framework-Quartz on Darwin.
On Windows the limit is sharper. Windows OpenSSH normally runs in Session 0, and for that reason Windows forced-command desktop capture remains experimental, even though the one-line installer itself is supported. In practice the installer can succeed and the desktop view can still fail to capture the interactive screen. If your goal is to reach a Windows desktop from a terminal, test that exact path before building on it.
The README describes X11, common Wayland desktop, macOS and Windows backend abstractions as a feature, and the dependency list reflects it: python-xlib is installed only on Linux, and Pillow is required everywhere. Treat the backend abstraction as a design intent and the platform notes above as the actual state.
The one-line installers run downloaded code as an administrator
The recommended install is a script piped into sh on Linux or macOS, and a PowerShell script block on Windows that requests Administrator permission when needed:
curl -fsSL https://raw.githubusercontent.com/rylena/sshdesk/main/scripts/install.sh | sh& ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/rylena/sshdesk/main/scripts/install.ps1')))The scripts detect the OS, install missing Python and OpenSSH prerequisites, install SSHDESK, validate graphical access and the forced-command configuration, and start the platform's OpenSSH service. The README flags the risk itself: executing downloaded code with administrator permission, so review scripts/install.sh or scripts/install.ps1 first. On Linux and macOS, add --user USER when automatic user detection is wrong.
For unattended installs, download first and pass a Tailscale flag:
curl -fsSLo /tmp/sshdesk-install.sh \
https://raw.githubusercontent.com/rylena/sshdesk/main/scripts/install.sh
sh /tmp/sshdesk-install.sh --user alice --no-tailscaleWindows takes -Tailscale or -NoTailscale. By default the installer asks about Tailscale only after SSHDESK and OpenSSH setup succeed, and Tailscale carries normal OpenSSH over the tailnet without replacing it or adding a second authentication mode.
Agent commands, package entry points and an unreleased version line
The README advertises agent-safe screenshot and computer-use commands carried through OpenSSH, and an optional tmux side-by-side layout with an agent shell next to the visual desktop. It also tells AI coding agents to read AGENTS.md before modifying the repository. The details of those commands are not in the README text, but the package entry points in pyproject.toml hint at the surface: sshdesk, sshdesk-local, sshdesk-server, sshdesk-bench, sshdesk-agent, sshdesk-agent-ssh, sshdesk-forced-command, sshdesk-split and sshdesk-remote.
The package is version 0.4.5 and requires Python 3.10 or newer. Its core dependencies are Pillow 9.0 or newer, plus python-xlib 0.33 or newer on Linux. A fast extra adds numpy and opencv-python-headless, and a dev extra adds pytest and ruff.
The repository has no GitHub releases, so there are no tagged downloads to pin; the installers fetch from the main branch URLs shown above. Install behaviour can therefore change between runs. The last push was on 2026-08-22, the project is not archived, a CHANGELOG.md sits at the root, and the license is MIT.
Editorial conclusion
SSHDESK suits people who already live in an SSH terminal and want a Linux desktop on the same connection, including as a visual surface for an AI agent. It is the wrong tool for a Windows host, where forced-command capture is still experimental, and for any account whose login you cannot treat like physical console access. Before installing, read scripts/install.sh, keep a second administrative login open and confirm your terminal is one of the three that get sharp tiles.
Frequently asked questions
Is SSH the same as remote desktop, and what does SSHDESK do?
No. SSH normally gives you a shell, while SSHDESK sends a graphical desktop through the SSH session and draws it in your terminal. It adds no VNC or RDP listener and no extra port.
Which terminals get sharp rendering in SSHDESK?
Kitty, Ghostty and WezTerm receive sharp real-pixel tiles. Every ordinary ANSI terminal, including PuTTY and mobile clients, gets the lower-resolution colour-cell renderer.
Which host operating system does SSHDESK recommend?
Linux is the recommended SSHDESK host. Windows forced-command desktop capture remains experimental, and macOS asks for Screen Recording and Accessibility access.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/rylena-sshdesk)Star history chart for your README
[](https://hysenlabs.com/projects/rylena-sshdesk)Was this useful?