SSHDESK
github.com/rylena/sshdesk- Category
- Developer Tools
- Rank
- No. 1209Tools index
- Pricing
- Open Source
- Type
- TOOL
- Builder
- @DarthKermi72747
- GitHub
- 542 stars
- Date
About
A server that delivers a full interactive remote desktop entirely through an SSH session, rendered inside the terminal, with no extra ports opened. Users connect with their existing SSH client; OpenSSH authenticates and launches SSHDESK as a forced command, and a normal login shell remains available by selecting it explicitly. Written in Python and MIT licensed.
What it does
SSHDESK lets you see and drive a computer's graphical screen from any terminal you can already reach it with over SSH. The host captures each frame, sends only the regions that changed, and draws them as real pixels on Kitty, Ghostty or WezTerm, or as colored character blocks on every other terminal, PuTTY and phone apps included. Keystrokes, mouse clicks and window resizes travel back over that same connection. A second, scriptable mode lets an AI agent take screenshots, click and type one command at a time, so a coding agent can operate a desktop application through an ordinary login.
Why it's ranked here
The design choice is the case for it. Instead of adding a VNC or RDP server with its own port and passwords, SSHDESK hands every security job (keys, encryption, host verification, rate limits) to the OpenSSH you already run, and opens no listening socket of its own. That shrinks what you have to secure to one service. The engineering behind the picture is real: a latest-frame scheduler that drops stale work, adaptive resolution when the client falls behind, and bounded input parsing. It is a pre-1.0, MIT-licensed project whose Windows hosting is still experimental, so treat Linux as the place it is ready.
What's good
Nothing needs installing on the viewing side; an unmodified SSH client and terminal are enough. Frame pacing is thought through: capture targets 60 frames per second with pixel graphics and 30 in character mode, presentation drops to 2 per second when idle, and any keypress wakes it at once. Untrusted input is capped, with pending escape sequences limited to 8192 bytes and coordinates checked before injection. The agent channel accepts a fixed set of verbs, parsed without a shell, and a JSON session mode avoids reconnecting per action. On disconnect it releases held keys and mouse buttons and restores the terminal.
Tradeoffs
Anyone who can log in to the SSHDESK account controls the live desktop, and the docs say to treat it like physical console access. The same account can also request a normal login shell, so it is not confined to the desktop. The headline install pipes a downloaded script into a shell with administrator rights. Wayland support depends on the compositor: KDE capture runs an external screenshot command and is documented as slower, and macOS needs Screen Recording and Accessibility grants. Agents get screenshots, not an accessibility tree, so navigating an unfamiliar screen needs a vision model. The security policy's reporting address is at gmaail.com and looks misspelled.
How to use it well
It suits someone who already manages a Linux desktop over SSH and wants its screen without opening another service, or who wants an agent to click through a graphical app on that machine. Keep a second admin login open while setting up the forced command, test with the server's check option before connecting, and run the desktop under a dedicated SSH account so the owner's shell stays separate. Use a Kitty-protocol terminal if picture quality matters; lower the render scale on slow links. Skip it if you need a Windows host today, or cannot accept console-level access tied to an SSH account.
Technical notes+
Entry points are declared in pyproject.toml (sshdesk-server, sshdesk-agent, sshdesk-remote, sshdesk-split, sshdesk-forced-command), with Pillow as the only hard dependency plus python-xlib on Linux and optional numpy/opencv acceleration. The dispatcher in src/sshdesk/cli.py splits SSH_ORIGINAL_COMMAND with shlex, routes sshdesk-agent to the agent parser, accepts single-word desktop or shell selectors only with a PTY, and sends anything else to the agent parser for rejection; scripts/sshdesk-forced-command mirrors this in POSIX sh and reads only fixed keys from /etc/sshdesk. src/sshdesk/render/kitty.py diffs frames with ImageChops, hashes tiles with blake2s, and falls back to a full redraw once changed tiles reach 15 percent of the viewport. src/sshdesk/capture/wayland.py spawns grim, gnome-screenshot or spectacle per frame with a 5 second timeout; docs/architecture.md lists a separate persistent PipeWire capture for GNOME.
Observed
- License
- MIT (LICENSE, pyproject.toml)
- Language
- Python, requires 3.10 or newer (pyproject.toml)
- Interfaces
- Server launched as an OpenSSH forced command, plus CLI tools for agent control, remote JSON sessions, tmux split view and benchmarking (pyproject.toml)
- Network surface
- Opens no listening socket; authentication and transport are delegated to OpenSSH (docs/security.md)
- Host platforms
- Linux primary (X11, GNOME, KDE Plasma, wlroots); macOS supported with permission grants; Windows forced-command hosting experimental (docs/platforms.md)
- Client rendering
- Kitty graphics protocol pixel tiles on Kitty, Ghostty, WezTerm; ANSI half-block or ASCII fallback elsewhere (docs/compatibility.md)
- Install surface
- One-line shell or PowerShell bootstrap run with administrator rights, or manual install scripts (README.md)
- Core dependencies
- Pillow; python-xlib on Linux; optional numpy and OpenCV acceleration (pyproject.toml)
Read from README.md, pyproject.toml, LICENSE, docs/architecture.md, docs/security.md, docs/platforms.md, docs/compatibility.md, docs/benchmark.md, src/sshdesk/cli.py, src/sshdesk/session/server.py, src/sshdesk/render/kitty.py, src/sshdesk/capture/wayland.py, scripts/sshdesk-forced-command.
Similar tools
Tags
Tech Stack
Media
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.