GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Dhiva-Labs/CrossShell: Two machines, one desk: SSH both ways, files, port forwards and remote desktop between Linux and Windows on your LAN — set up with a 6-digit pairing code.

BranchesTags
Open more actions menu

Latest commit

 

History

63 Commits
63 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
engine
engine
 
 
packaging
packaging
 
 
scripts
scripts
 
 
snap
snap
 
 
store
store
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
PLAN.md
PLAN.md
 
 
README.md
README.md
 
 

Repository files navigation

CrossShell

ARM64 builds Linux x64 | arm64 Windows x64 | arm64 Linux: tarball | rpm | Arch | AppImage | Flatpak

Two machines, one desk. CrossShell links a Linux daily driver and a Windows build box (or any mix of Linux and Windows machines) on the same network:

  • SSH both ways, set up for you. CrossShell enables the OS's own OpenSSH server, pairs the machines with a 6-digit code, swaps keys and pins host keys. Afterwards ssh <name> works from any terminal — and so do VS Code Remote-SSH, rsync, scp and git.
  • Terminal, files and port forwards in the app, over that SSH.
  • Remote desktop, TeamViewer-style: view or control the other screen. It's CrossShell's own engine, tunneled through SSH, so it works on Windows Home (which has no RDP server) and on Wayland, opens no extra ports, and needs no third-party server.

Documentation: step-by-step guides at learn.dhivalabs.com: install · beginner guide · troubleshooting. New to the topic? Try the Networking and SSH learning track.

How it works

 Linux  ───────────── LAN ─────────────  Windows
 CrossShell app                           CrossShell app
   │  pairing (TCP 47820, once)  ◄────►     │
   │  discovery (UDP 47820)      ◄────►     │
   │                                        │
   ├─ ssh / sftp ─────────────────────────► sshd (OpenSSH Server)
   └─ ssh -L ── remote desktop ──────────►  └─ crossshell-host (127.0.0.1 only)
 sshd ◄────────────────────────────────── ssh / sftp / ssh -L
  • Pairing uses an ephemeral X25519 exchange with a commitment and shows the same 6-digit code on both screens. If the codes match, each side sends its SSH user, its client key and its sshd host keys, sealed with a key only the two of them have. Nobody types passwords and nothing is trusted on first use.
  • Trust lives in standard files in ~/.ssh/crossshell/ (config, known_hosts, id_ed25519), plus one Include line at the top of ~/.ssh/config. Peer keys go into authorized_keys, or on Windows admin accounts into C:\ProgramData\ssh\administrators_authorized_keys. Each line carries a crossshell:<peer-id> marker so unpairing removes exactly that line.
  • Remote desktop: the host agent listens on 127.0.0.1 only and writes a fresh random token to a file only its user can read. The viewer reads that file over SSH, opens an SSH tunnel and authenticates with the token. SSH is the only way in.

See PLAN.md for the full design, wire protocol and pairing spec.

Install

Download from the releases page:

  • Linux (x64): crossshell-<ver>-linux-x64.tar.gz. Extract it and run ./cross_shell. You need the OpenSSH client (ssh, ssh-keygen) and GTK 3. Screen sharing uses PipeWire, which any current desktop has.

  • Linux (arm64): crossshell-<ver>-linux-arm64.tar.gz, the same bundle built natively for aarch64. It has the same requirements and is used the same way.

  • Fedora, RHEL, openSUSE: crossshell-<ver>-1.x86_64.rpm or -1.aarch64.rpm. sudo dnf install ./crossshell-<ver>-1.x86_64.rpm, or on openSUSE sudo zypper install --allow-unsigned-rpm ./crossshell-<ver>-1.x86_64.rpm (the package is not signed). It pulls in the OpenSSH client, GTK 3 and PipeWire, and starts as crossshell.

  • Arch, Manjaro, EndeavourOS: crossshell-<ver>-1-x86_64.pkg.tar.zst or -aarch64: sudo pacman -U ./crossshell-<ver>-1-x86_64.pkg.tar.zst. The release also carries crossshell-bin-<ver>-aur.tar.gz, the recipe for an AUR crossshell-bin package (not on the AUR yet).

  • Any other Linux: CrossShell-<ver>-x86_64.AppImage or -aarch64: chmod +x CrossShell-<ver>-x86_64.AppImage && ./CrossShell-<ver>-x86_64.AppImage. Like the tarball it needs GTK 3, PipeWire and the OpenSSH client from the system.

  • Flatpak: crossshell-<ver>-x86_64.flatpak or -aarch64: flatpak install --user ./crossshell-<ver>-x86_64.flatpak (the GNOME runtime comes from Flathub; OpenSSH's client is inside the bundle). In the sandbox it can pair, open terminals, files and port forwards and view other machines, but it cannot set up this machine's SSH server or let other machines view this screen. The full list is in packaging/flatpak/README.md.

    These four are attached to releases from the next release on. They hold the same build as the tarball, which is made on Ubuntu 24.04 (glibc 2.39): use a current distribution (Fedora 40 or later, openSUSE Tumbleweed, current Arch; not RHEL 9 or openSUSE Leap 15). The .rpm records the newest glibc it needs, so dnf and zypper refuse it where it would not run.

  • Windows 10/11 (x64): crossshell-<ver>-windows-x64.zip. Extract it and run cross_shell.exe. The OpenSSH client ships with Windows; the app can install OpenSSH Server for you.

  • Windows 11 on ARM (arm64): crossshell-<ver>-windows-arm64.zip, a native ARM64 build with the same contents and steps as the x64 zip. It needs the Microsoft Visual C++ Redistributable for ARM64, like the x64 build needs the x64 one. Remote desktop uses the same Windows APIs as on x64 (Desktop Duplication for capture, SendInput for input); CI exercises the capture on a Windows 11 ARM runner.

Pick the file that matches the machine: uname -m prints aarch64 on arm64 Linux, and Windows shows the processor type under Settings, System, About. A machine pair can mix architectures, for example a Linux arm64 box and an x64 Windows PC.

The builds are not code-signed yet. On Windows, SmartScreen will warn on first launch. If Smart App Control is on, it may block cross_shell.exe or the screen-share agent crossshell-host.exe. The app tells you when that happens. Signed releases are planned.

Verify downloads with SHA256SUMS (it lists the files of both architectures).

Use it

  1. Install and open CrossShell on both machines.
  2. Open This machine (the gear icon) and fix anything red. Usually that means Set up SSH server, which takes one admin prompt (UAC on Windows, polkit on Linux). On Windows the firewall rules cover Private and work networks only: if the network is set to Public, the page says so, and you switch it to Private in Settings, Network & internet. To let a paired machine view and control this screen, turn on Screen sharing there (it is off by default). Before uninstalling, use Remove CrossShell changes from this PC on the same page.
  3. The other machine appears under Nearby. Click Pair and check that both screens show the same code.
  4. Use the machine card: Terminal, Files, Remote desktop, or More for view-only, port forwards, system terminal, VS Code and unpairing.

From any terminal afterwards:

ssh winbox

Limits (honest list)

  • Windows secure desktop: UAC prompts, the lock screen and the sign-in screen can't be captured by an agent running in your session. The viewer shows a notice until they go away.
  • Windows elevated windows: these can be driven when the agent runs with highest privileges. That is automatic for admin users when the session is started remotely.
  • Linux on GNOME: sharing uses Mutter's remote-desktop API, with no prompt. On other Wayland desktops the xdg portal shows a consent dialog once, and a restore token avoids it afterwards. On X11 it uses XShm + XTest.
  • Terminal input: the built-in terminal takes keys directly from the keyboard, so input methods (IME) and dead-key compose sequences don't reach it. Use Open in system terminal for those.
  • LAN only: across the internet, put both machines on a VPN (Tailscale, WireGuard) and use Pair by address.

Build

scripts/build-linux.sh                     # dist/crossshell-<ver>-linux-<x64|arm64>.tar.gz
scripts/build-windows.sh user@winbox       # dist/crossshell-<ver>-windows-x64.zip

build-linux.sh builds natively for the machine it runs on, so run it on an aarch64 machine for the arm64 bundle. Flutter cannot cross-compile Windows, so build-windows.sh produces the x64 zip (engine cross-built here, app built on the Windows machine). The arm64 builds happen on native runners in CI (.github/workflows/ci.yml): ubuntu-24.04-arm and windows-11-arm. On a Windows machine, after cargo build --release -p crossshell-host -p crossshell-view in engine/ and flutter build windows --release in app/, scripts\package-windows.ps1 writes the zip for that machine's architecture.

Every CI run builds and tests both architectures, checks that each binary in the packages is the right architecture (ELF aarch64 / PE 0xAA64) and smoke-runs the packaged engine and app (scripts/smoke-linux.sh, scripts/smoke-windows.ps1). When a release is published, the workflow attaches the tarballs and zips for x64 and arm64 that the release does not have yet, and SHA256SUMS if it has none. It never replaces a file, so anything uploaded by hand stays as it was. The CI also builds the Snap on amd64 and arm64 (see packaging/SNAP.md).

Layout: app/ is the Flutter UI (Linux + Windows) and engine/ is the Rust workspace:

  • crossshell-proto: wire protocol and tile codec
  • crossshell-host: agent
  • crossshell-view: viewer
  • platform-*: capture/input backends

Tests:

cd engine && cargo test --release
cd app && flutter test

Sponsors

Dhiva Labs is an independent, self-funded lab. Sponsorships help bring this project and the rest of Dhiva Labs to every platform, iPhone and Mac included.

Sponsor Dhiva Labs

Monthly sponsors at $10 and up are listed here:

Be the first: sponsor Dhiva Labs.

License

MIT

About

Two machines, one desk: SSH both ways, files, port forwards and remote desktop between Linux and Windows on your LAN — set up with a 6-digit pairing code.

learn.dhivalabs.com/apps/crossshell/

Topics

flutterlanlinuxremote-desktoprustsftpsshwindows

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.