tabby-rdp 0.5.7 → 0.6.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  # tabby-rdp
6
6
 
7
- **Remote desktops in your Tabby SSH tabs.**<br>
8
- Linux and Windows, side by side, through the SSH connections you already have.
7
+ **Windows and Linux desktops inside Tabby.**<br>
8
+ Connect through SSH, directly over RDP, or through an RD Gateway.
9
9
 
10
10
  [![npm](https://img.shields.io/npm/v/tabby-rdp?color=3b82f6)](https://www.npmjs.com/package/tabby-rdp)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-3b82f6)](LICENSE)
@@ -17,697 +17,177 @@ Linux and Windows, side by side, through the SSH connections you already have.
17
17
 
18
18
  </div>
19
19
 
20
- ---
21
20
 
22
- tabby-rdp is a plugin for the [Tabby](https://tabby.sh) terminal. Press a key in an SSH tab and the machine's desktop
23
- appears in its place; press it again and you're back at the shell. SSH desktops use the connection you already have;
24
- remote desktop profiles can also connect directly or through an RD Gateway.
25
-
26
- - **Linux desktops without a monitor or a login.** The plugin starts a headless GNOME session for your SSH user with
27
- GNOME Remote Desktop, on the fly, without root. A server in a rack works as well as a workstation.
28
- - **Other Linux desktops** through xrdp, including tested Rocky Linux 9 with Xfce. KDE, MATE, Cinnamon and
29
- other desktops can also run in xrdp sessions; the plugin finds the server by itself.
30
- - **Windows desktops** behind any SSH host, such as a VM on your build server, and the desktop of a Windows machine
31
- you SSH into.
32
- - **Remote desktop profiles** for machines you reach without SSH (LAN, VPN): in Tabby's profile list, in a tab of their
33
- own.
34
- - **Several machines at once:** split a tab into a grid of desktops, then paste to all of them or type into all of them
35
- at once. A short on-screen name says which one you're in.
36
- - **VMs found for you:** the libvirt VMs on an SSH host that have a desktop show up in its menu, ready to open, or to
37
- start and open.
38
- - **`ssh` on from a host:** in an SSH tab where you typed `ssh` to another machine, the desktop is that machine's.
39
- - **A proper desktop experience:** clipboard and files both ways, sound and microphone, live resize to the pane,
40
- sharp Retina rendering, Mac keyboard shortcuts, and automatic reconnects after sleep.
41
- - **`desk`:** type `desk` in the console and the same shell, with its history and running programs, moves into a
42
- terminal on the desktop.
43
-
44
- Everything is in **Settings › Remote Desktop**: Getting started, Settings, Overlay, Desktops, Accounts and Updates.
45
- The **Troubleshooting** link at the top opens the [troubleshooting guide](TROUBLESHOOTING.md).
46
-
47
- The remote desktop itself is [IronRDP](https://github.com/Devolutions/IronRDP)'s web client, running inside Tabby.
48
- Making it work with GNOME took fixes in IronRDP, which we contribute upstream ([below](#built-on-ironrdp)).
49
-
50
- ## Contents
51
-
52
- - [Install](#install)
53
- - [Versions and recovery](#versions-and-recovery)
54
- - [Use](#use)
55
- - [Features](#features)
56
- - [Windows and other desktops behind a host](#windows-and-other-desktops-behind-a-host)
57
- - [Remote desktop profiles](#remote-desktop-profiles)
58
- - [Saved accounts](#saved-accounts)
59
- - [Clipboard](#clipboard)
60
- - [Shared folders](#shared-folders)
61
- - [Several desktops in one tab](#several-desktops-in-one-tab)
62
- - [VMs on a host](#vms-on-a-host)
63
- - [desk: the console on the desktop](#desk-the-console-on-the-desktop)
64
- - [Settings](#settings)
65
- - [Requirements](#requirements)
66
- - [Tested environments](#tested-environments)
67
- - [Built on IronRDP](#built-on-ironrdp)
68
- - [Development](#development)
69
- - [Limitations](#limitations)
70
- - [Questions and problems](#questions-and-problems)
71
- - [License](#license)
21
+ ---
72
22
 
73
- ## Install
23
+ tabby-rdp adds remote desktops to the [Tabby](https://tabby.sh) terminal. Switch an SSH pane between its shell and
24
+ desktop, or open an RDP profile in a tab of its own. Split tabs to work with several machines side by side.
74
25
 
75
- In Tabby: **Settings › Plugins**, search for **tabby-rdp**, install, and restart Tabby.
26
+ **Windows, Xfce, KDE Plasma, MATE, Cinnamon and GNOME** can be reached through their RDP servers. GNOME also supports
27
+ automatic headless setup over SSH. Server requirements and tested coverage are [below](#supported-desktops).
76
28
 
77
- Or from a terminal, into Tabby's plugin folder (on macOS `~/Library/Application Support/tabby/plugins`, on Linux
78
- `~/.config/tabby/plugins`, on Windows `%APPDATA%\tabby\plugins`):
29
+ [Install](#install) · [Get started](#use) · [Connection options](#connection-options) · [User guides](#user-guides) ·
30
+ [Troubleshooting](TROUBLESHOOTING.md)
79
31
 
80
- ```sh
81
- npm install tabby-rdp
82
- ```
32
+ ## Install
83
33
 
84
- ## Versions and recovery
34
+ In Tabby, open **Settings › Plugins**, search for **tabby-rdp**, install, and restart Tabby.
35
+ Requires **Tabby 1.0.236 or newer** on macOS, Windows or Linux.
85
36
 
86
- Open **Settings › Remote Desktop › Updates** to manage the installed version:
37
+ For a terminal installation, run `npm install tabby-rdp` in Tabby's plugin folder:
87
38
 
88
- - **Stable** is the default. **Preview** also offers beta releases and release candidates when available.
89
- - Automatic checks look for updates once a day. **Check now** checks manually; installation is always your choice.
90
- - Choose an exact compatible version, **Return to stable**, or **Restore previous version** after an installation
91
- from this page. After running **0.5.3**, version changes require **0.5.3 or newer** to preserve separate
92
- gateway sign-in prompts; returning to an older stable release is blocked.
93
- - **Uninstall plugin…** removes the package. **Manage in Tabby…** opens Tabby's plugin controls to disable it.
94
- Saved connections, settings, passwords and remote setup are kept.
39
+ | This computer | Plugin folder |
40
+ |---|---|
41
+ | macOS | `~/Library/Application Support/tabby/plugins` |
42
+ | Linux | `~/.config/tabby/plugins` |
43
+ | Windows | `%APPDATA%\tabby\plugins` |
95
44
 
96
- The confirmation dialog stays open during installation or removal and shows progress, elapsed time and the verified
97
- result. After success, close remote desktops and restart Tabby. Until then, Updates shows the running version and
98
- the installed version waiting for restart. Preferences and version history stay on this computer.
45
+ <a id="versions-and-recovery"></a>
99
46
 
100
- See [troubleshooting and recovery](TROUBLESHOOTING.md#recovery) if the plugin cannot load or you want to clean up saved
101
- data or remote helpers.
47
+ Choose stable or preview updates in **Settings › Remote Desktop › Updates**. Installation is always your choice;
48
+ restart Tabby afterward. See [versions and recovery](docs/settings.md#versions-and-recovery).
102
49
 
103
50
  ## Use
104
51
 
105
- Open an SSH tab to a Linux machine with GNOME, and:
52
+ 1. Open an SSH tab to a machine with a supported desktop server.
53
+ 2. Press **⌘⇧G** on macOS or **Ctrl+Shift+G** on Windows/Linux, or click **Desktop** in the SSH tab's toolbar.
54
+ 3. Press the shortcut again to return to the console. The desktop keeps running until you disconnect or close it.
106
55
 
107
- - press **⌘⇧G** (Ctrl+Shift+G on Windows and Linux), or
108
- - click **Desktop** in the SSH tab's toolbar, or the desktop button in Tabby's header, or
109
- - right-click the terminal or the tab: **Open remote desktop**, under the **Remote Desktop** heading.
56
+ For GNOME, the first connection prepares a headless session without root or a monitor. With xrdp or Windows,
57
+ the plugin uses the existing RDP server and asks for your account. A host with both GNOME and xrdp offers the xrdp
58
+ desktop separately after its GNOME desktop has been opened.
110
59
 
111
60
  <p align="center"><img src="docs/images/desktop.png" width="760" alt="A GNOME desktop in a Tabby SSH tab"></p>
112
61
 
113
- The first connection to a machine takes a few seconds while it prepares GNOME Remote Desktop and a session; later
114
- ones take well under a second. The same shortcut switches between the desktop and the console, and the desktop keeps
115
- running in the background until you disconnect or close the tab.
116
-
117
- GNOME's generated password and TLS key belong to each SSH user and machine. They are kept under
118
- `~/.local/share/tabby-rdp/hosts/<machine-id>/`, with private directory/file permissions. Linux needs a valid,
119
- initialized `/etc/machine-id`; cloned machines must have distinct IDs. On the first connection after this change,
120
- each machine gets new credentials and GNOME Remote Desktop restarts, disconnecting any existing RDP clients.
121
- Reconnect to **every** machine using a shared home to rotate all active credentials. Old home-wide credential files
122
- are preserved for machines still using an earlier version, but this version never imports them.
123
-
124
- Separate credentials prevent accidental reuse across machines; they do not isolate machines that let the same
125
- account read or write the shared home. That account can still read every machine's stored secrets and GNOME's own
126
- shared configuration. Use separate accounts or host-local homes when those machines need independent trust.
127
-
128
- A machine without GNOME but with [xrdp](https://github.com/neutrinolabs/xrdp) running (the usual RDP server for KDE,
129
- XFCE, MATE and the rest) gets xrdp's desktop instead: sign in with your Linux password, which the plugin can remember
130
- in the system keychain. xrdp takes the password without Network Level Authentication, and that the machine's desktop
131
- is xrdp is the machine's own word, so the first sign-in asks before the password goes; the answer is kept with that
132
- desktop's certificate. A machine with both keeps GNOME as the tab's desktop and, once that has been opened, also
133
- offers **Open \<host\> desktop (xrdp)** in its menus.
134
-
135
- It also works in a plain local terminal where you typed `ssh host` (macOS and Linux), as long as that host accepts
136
- your key without a password prompt. And in an SSH tab where you typed `ssh` on to another machine: **Desktop** there
137
- opens that machine's desktop, going through the first, as long as the first can log in to it by itself (a key there,
138
- or agent forwarding). So one pane of a split can show the first machine's desktop, and the other, after `ssh other`,
139
- that machine's. Desktop asks which desktop you mean, the first machine's or that one's, this time or **from now on**:
140
- which `ssh` runs in a console is the first machine's to say. Chosen from now on, that machine's desktop opens at once
141
- the next times. A machine reached this way keeps its saved sign-in and certificate under the machine it goes through,
142
- apart from the same machine opened in a tab of its own, and only its own desktop opens that way (VMs aren't looked for
143
- there): desktops added behind a host open in tabs connected to that host. A "from now on" is taken back by removing its
144
- entry from `remoteDesktop.nestedSSH` in Tabby's config file (Settings › Config file): `via` is the tab's host,
145
- `destination` the name typed after `ssh`.
146
-
147
- One desktop per account: a second tab to the same `user@host` switches to the tab that has it open, rather than
148
- connecting again.
62
+ <a id="requirements"></a>
63
+ <a id="tested-environments"></a>
64
+
65
+ ## Supported desktops
66
+
67
+ | Remote OS / desktop | RDP server | Setup and coverage |
68
+ |---|---|---|
69
+ | Windows 10/11 Pro and Windows Server | Windows Remote Desktop | Enable Remote Desktop; connect directly or through SSH / RD Gateway. Windows 11 has visual QA coverage; the FreeRDP preview was also tested against Server 2025. |
70
+ | Linux: Xfce, KDE Plasma, MATE, Cinnamon and others | xrdp | Uses the desktop configured for xrdp sessions. Rocky Linux 9 with Xfce is tested; other desktop combinations need their own qualification. |
71
+ | Linux: GNOME | GNOME Remote Desktop 46+ | Automatic headless setup for the SSH user. Ubuntu, Debian and Fedora have visual QA coverage. |
72
+ | Linux: KDE Plasma through KRDP | KRDP | Experimental: the tested Fedora stack needs server patches; stock KRDP and live monitor resize remain unqualified. |
73
+
74
+ The client runs on **macOS, Windows and Linux**. These are separate from the OS of the remote desktop.
75
+ See [requirements, exact test environments and limitations](docs/compatibility.md) for server versions, optional
76
+ channels and pending coverage. The FreeRDP client preview has a narrower platform and feature set than IronRDP.
77
+
78
+ <a id="windows-and-other-desktops-behind-a-host"></a>
79
+ <a id="remote-desktop-profiles"></a>
80
+ <a id="through-an-rd-gateway"></a>
81
+ <a id="vms-on-a-host"></a>
82
+ <a id="hyper-v"></a>
83
+
84
+ ## Connection options
85
+
86
+ | Connect to | Remote OS | Setup | What opens |
87
+ |---|---|---|---|
88
+ | The SSH host's own desktop | Linux or Windows | Open SSH, then **Desktop**. Windows hosts need OpenSSH Server and Remote Desktop. | Desktop in that SSH pane; switch back to its console |
89
+ | A desktop behind an SSH host | Windows or Linux | **Desktops › Add a desktop behind \<host\>…**; enter the address as the SSH host sees it | Desktop through the existing SSH connection |
90
+ | A machine on the LAN or VPN | Windows or Linux | **Settings › Profiles & connections › New profile › Remote desktop (RDP)** | A dedicated desktop tab |
91
+ | A machine reached through an RD Gateway | Windows or Linux | Set the profile's **RD Gateway** and the desktop address as the gateway sees it | RDP tunneled over HTTPS |
92
+ | A Hyper-V VM console | Any guest OS; Windows host | Select the VM in the Windows SSH host's **Desktops** menu | VM console; no guest RDP server required; IronRDP only |
93
+
94
+ Behind-host desktops can be edited or removed from the menu. RDP profiles also support SSH routing, quick connect
95
+ with `user@host:port`, and **Import an .rdp file…**. See the [connection guide](docs/connections.md) for setup, import
96
+ behavior, VM discovery and waking desktops. The [edit/removal table](docs/credentials-and-trust.md#what-changes-when-you-edit-a-desktop)
97
+ explains what happens to saved passwords and certificates.
98
+
99
+ <p align="center"><img src="docs/images/windows.png" width="760" alt="A Windows desktop reached through an SSH host"></p>
100
+
101
+ <a id="clipboard"></a>
102
+ <a id="shared-folders"></a>
103
+ <a id="several-desktops-in-one-tab"></a>
149
104
 
150
105
  ## Features
151
106
 
152
- | | |
107
+ These features describe the default **IronRDP** client. The FreeRDP preview's limits are [below](#rdp-client-preview).
108
+
109
+ | Feature | What you can do |
153
110
  |---|---|
154
- | **Clipboard** | Copy and paste text and images in both directions; or only from the remote desktop to this computer, or not at all, for every desktop or for some: [below](#clipboard). |
155
- | **Files** | Copy files or folders in Finder and press ⌘V on the desktop, or drop them onto it, or use **Remote Desktop › Send files…** in the pane's menu; they paste in Files or Explorer. A copied folder's links go along only when they lead somewhere inside it. Files copied on the remote offer **Save to Downloads**, which saves them there (never into a folder that was there before), marks them as downloaded, as a browser does (so macOS can ask before an app among them first opens), and takes invisible characters that could disguise a name out of it. They go the ways the [clipboard](#clipboard) does. |
156
- | **Shared folders** | Folders from this computer as drives on the remote desktop (`\\tsclient\<name>` in Explorer), read-write or read-only, for working with files in place: [below](#shared-folders). Windows (and xrdp with FUSE). |
157
- | **Several desktops in one tab** | Paste to all of them, type into all of them, and see which is which: [below](#several-desktops-in-one-tab). |
158
- | **RD Gateway** | Desktops behind a Remote Desktop Gateway: the profile names the gateway, and the connection goes through it over HTTPS: [below](#through-an-rd-gateway). |
159
- | **VMs on a host** | The host's VMs with a desktop, ready to open: [below](#vms-on-a-host). |
160
- | **Sound** | The remote desktop's sound plays locally. |
161
- | **Microphone** | Optional (off by default): an app on the remote desktop that records, such as a call, gets your microphone. It is only captured while the remote asks for it, with a red dot in the corner of the desktop and a red microphone in Tabby's header, which stays also while the desktop is hidden or its tab is in the background (in full screen, where Tabby hides its header, it shows at the top of the window, in the middle): click it to show that desktop, or to stop sending the microphone there. Stopped, a desktop gets it again only once **Send the microphone** is turned back on in its menu, or Tabby restarts, its reconnects included; the same switch keeps it from a desktop beforehand. A desktop that starts receiving it while it isn't showing also brings a note. |
162
- | **Resize** | The remote resolution follows the pane as you resize the window or split it. Or reconnect at the new size, or keep a fixed resolution, scaled to fit or at actual size with scroll bars. |
163
- | **Retina** | Optionally renders at device pixels, with the remote's UI scaled to match (GNOME and Windows alike), for sharp text. For all desktops, or only some. |
164
- | **Keyboard on macOS** | ⌘C, ⌘V, ⌘Z and the rest work as on a Mac; tapping ⌘ alone is the Windows key, and ⌃⌘ with a key is the Windows key with it (⌃⌘R for Win+R). Tabby's own shortcuts stay out of the way while a desktop is showing, except switching tabs and returning to the console. |
165
- | **Send keys** | In the desktop's menus: Ctrl+Alt+Del, Win+R, Win+L, Ctrl+Shift+Esc, Print Screen and more for Windows; Super, Super+A, Alt+F2 and more for GNOME. |
166
- | **View only** | In the desktop's menus: watch a desktop without touching it. No keys or clicks go to it while a "View only" label shows; the picture, clipboard and sound carry on. Kept across reconnects, until the desktop is closed. |
167
- | **Screenshots** | **Save a screenshot** in the desktop's menus saves the remote screen at its full resolution as a PNG in Downloads, and copies it to the clipboard. |
168
- | **Connection status** | Optionally, a small line in the corner of the desktop with the throughput each way, frames per second, the SSH round trip, and how it is connected (desktop, host, resolution, graphics mode, sharpness). |
169
- | **Reconnecting** | After sleep or a network change, the desktop reconnects by itself once the connection is back. |
170
- | **Sign-in** | GNOME desktops need none: the plugin manages their credentials. Windows and xrdp desktops ask for the account once and can remember it, in Tabby's Vault when that is on and in the system keychain otherwise; **Sign in again…** in the menu replaces it. A [saved account](#saved-accounts) defines a login once, to pick in any desktop. |
171
- | **Shortcuts** | Switching between the desktop and the console, view only, a screenshot, Ctrl+Alt+Del, typing into or pasting to all desktops of a tab, the connection status and Disconnect each have a hotkey, set on the settings page or in Tabby's Hotkeys. They work while the desktop has the keyboard; a key another hotkey has is refused. |
172
- | **Certificates** | GNOME desktops accept only the certificate the plugin made for them. A desktop you connect to directly, and an RD Gateway, connect without a question when their certificate is valid for their name by the certificate authorities this computer trusts; any other is shown, with why it can't be verified, its fingerprint and what it says of itself (whom it was issued to and by, and its dates), and connected only once you trust it. What it says of itself is its own word, unless its chain leads to an authority this computer trusts (another machine's certificate then shows that machine's name) and the TLS library didn't refuse it for a reason of its own (a limit set on the authority, say): an issuer you would expect there proves nothing, since anyone can make a certificate that names it; only the fingerprint, checked with whoever runs the server some other way, does. Desktops behind an SSH host remember theirs on first use. A different certificate later stops the connection and asks, but for one an authority vouches for in place of one it vouched for (a renewal); and one remembered on an authority's word is asked about again once it no longer validates. |
173
- | **Passwords stay with servers that know them** | Windows signs in with Network Level Authentication: a proof both ways, where the password only reaches a server that knows it already. A Windows desktop whose server doesn't use it would get the password as it is, so the connection stops and asks first, before your password or user name is sent. xrdp signs in that way by design, so desktops you made xrdp ones aren't asked about; one that is xrdp only by a host's word (a VM it lists, a machine reached through it, the host's own desktop) is asked about once. The answer is kept with the certificate of the server you gave it for: another certificate, a new address or a forgotten certificate asks again. |
174
-
175
- <p align="center"><img src="docs/images/files.png" width="760" alt="A file copied on the remote desktop, offered for saving"></p>
176
-
177
- ## Windows and other desktops behind a host
178
-
179
- An SSH host can lead to other desktops it can reach, such as a Windows VM on the same machine. In that host's menu,
180
- choose **Desktops › Add a desktop behind \<host\>…** and enter a name, the address as seen from the host, and
181
- optionally the user name and domain. It opens right away, and from then on appears under **Desktops** in the host's
182
- menu. **Settings › Edit a desktop** changes one (its saved password, sharpness and remembered certificate follow a new
183
- address, unless a desktop there has its own, the certificate staying at the old address too; and where a desktop at the
184
- new address is known already, its certificate remembered, the saved password doesn't follow either, since that desktop
185
- would sign in with it unasked: the edited one asks; a saved password follows only along with its desktop's remembered
186
- certificate, and is forgotten without one; a new user name, domain, account or gateway forgets the saved password), and
187
- **Remove a desktop** removes one, along with its saved password and remembered certificate (a Hyper-V VM's are its
188
- host's, which its other VMs use, and stay). What is kept for a desktop is found by its address: an edit or a removal
189
- applies to what desktops at that address behind other hosts have too.
190
-
191
- <p align="center"><img src="docs/images/windows.png" width="760" alt="A Windows 11 desktop, reached through an SSH host, in a Tabby tab"></p>
192
-
193
- In Tabby's config file, they look like this:
194
-
195
- ```yaml
196
- remoteDesktop:
197
- desktops:
198
- - name: Windows VM
199
- via: buildhost # the SSH host: alias, hostname, user@hostname or user@hostname:port (not a machine
200
- # reached with ssh typed in another host's console)
201
- host: 192.168.122.20 # the RDP server as seen from that host
202
- port: 3389
203
- kind: windows # or xrdp (a Linux desktop served by xrdp), or gnome
204
- username: alice # optional; DOMAIN\user works too
205
- domain: CORP # optional
206
- wake: { vm: win11 } # optional: start it when it's off (see below)
207
- clipboard: fromRemote # optional: its own clipboard sharing, both, fromRemote or off (see Clipboard)
208
- ```
111
+ | Clipboard and files | Copy text, images, files and folders; choose both ways, remote-to-local only, or off. Drag files onto a desktop or use **Send files…**. |
112
+ | Shared folders | Expose local folders as read-only or writable drives on Windows and compatible xrdp servers. |
113
+ | Sound and microphone | Play remote sound locally; optionally send your microphone when a remote app records. Microphone sharing is off by default. |
114
+ | Display | Live resize, Retina sharpness, fit-to-pane or actual-size display, screenshots and optional connection statistics. |
115
+ | Keyboard | Mac shortcuts, **Send keys**, Unicode input and view-only mode. |
116
+ | Several desktops | Split tabs, paste or type into visible desktops together, and show each desktop's name. |
117
+ | Reconnect | Recover after sleep or a network interruption. |
118
+ | Sign-in | Save passwords in Tabby's Vault or the system keychain; reuse named accounts across desktops. |
209
119
 
210
- The connection runs through the same SSH connection; the Windows machine needs Remote Desktop turned on, and nothing
211
- else.
212
-
213
- The first connection to a desktop behind a host remembers its TLS certificate, without asking (in Tabby's config,
214
- under `remoteDesktop.trustedCertificates`): the way there runs inside SSH. SSH vouches for the host, though, not for
215
- what answers behind it: a host you don't trust, or something on its network, could answer that first connection, so
216
- make it where you trust both. If a later connection meets a different certificate, the plugin stops before signing in
217
- and shows both fingerprints, with **Trust the new certificate** and **Cancel**. Reinstalling Windows or renewing its
218
- certificate changes it; if neither happened, something else is answering at that address. Automatic reconnects stop at
219
- the same question. A desktop allowed to sign in without Network Level Authentication is asked about that again once a
220
- new certificate is trusted, or its address changes.
221
-
222
- **An SSH host that is itself Windows** (with OpenSSH Server): its own desktop is Windows' Remote Desktop, at
223
- 127.0.0.1:3389 as seen from the host. The plugin finds this out the first time you open the desktop there, and asks
224
- for the Windows account instead (your SSH user name is filled in), with the same keychain option.
225
-
226
- ### Starting a desktop that is off
227
-
228
- A VM on the SSH host, or a machine next to it, may be shut down when you want its desktop. With `wake`, the plugin
229
- checks from the SSH host whether the desktop answers, and if it doesn't, starts it, shows **Starting \<name\>…** with
230
- the time so far, and connects as soon as it answers (it gives up after 3 minutes):
231
-
232
- - `wake: { vm: win11 }` starts the libvirt VM `win11` on the SSH host with `virsh start`, as your SSH user: first in
233
- `qemu:///system` (you need to be in the `libvirt` group, or allowed by polkit), then in your own `qemu:///session`.
234
- A paused VM is resumed.
235
- - `wake: { mac: "aa:bb:cc:dd:ee:ff" }` sends a Wake-on-LAN packet from the SSH host (with `python3`, to the broadcast
236
- address, UDP port 9). Add `broadcast: 192.168.1.255` for a particular network, or `port: 7`.
237
-
238
- In the add and edit forms, the last field takes a VM name or a MAC address. Automatic reconnects never start a desktop,
239
- since it may have been shut down on purpose; **Reconnect** does.
240
-
241
- ## Remote desktop profiles
242
-
243
- For an RDP server this computer reaches by itself (on the LAN, or over a VPN), there is a Tabby profile type:
244
- **Settings › Profiles & connections › New profile › Remote desktop (RDP)**. Give it the address, the kind (Windows,
245
- xrdp or GNOME Remote Desktop), and optionally the user name and domain. It then shows up in Tabby's profile list like
246
- SSH profiles do, and opens in a tab of its own that the desktop fills; there is no console under it. Sign-in, the
247
- keychain, certificates, resize, sharpness, clipboard, files, sound, microphone, **Send keys**, view only, screenshots
248
- and reconnecting work as in SSH tabs. After **Disconnect**, the tab offers **Connect**. In the profile selector you can
249
- also type `user@host:port` and pick **Quick connect (REMOTE DESKTOP (RDP))**. Several profiles can lead to one address,
250
- each signing in as another user: each user's password is saved on its own, their desktops open side by side, and
251
- editing or removing one profile leaves the others' passwords and the address's certificate alone. A profile that names
252
- no user asks who, and signs in with the password saved for the address by another such profile.
253
-
254
- **Import an .rdp file…** (in the menu's **Settings**, or **Remote desktop: import an .rdp file…** in Tabby's command
255
- palette) makes such a profile from a file saved by Remote Desktop Connection or handed out by an admin: its address,
256
- port, user name and domain, named after the file, and its [RD Gateway](#through-an-rd-gateway) when it connects
257
- through one; a `desktopscalefactor` of 150 or more sets that desktop's sharpness to Retina, and
258
- `redirectclipboard:i:0` turns its [clipboard](#clipboard) off (a file can't turn it on). Settings the plugin doesn't
259
- apply (sound left on the remote, a fixed window size, drive or printer redirection, several monitors) are named in a
260
- note on import, so the desktop's behaviour isn't a surprise. Nothing in a file runs here, and a program it names to
261
- start on the remote isn't asked for. What a file does decide is where you connect, so importing asks first, naming the
262
- address, the gateway and the account it leads to: what you sign in with goes there, and once signed in that desktop
263
- gets the folders you share, the clipboard as far as its setting goes, and your microphone when it asks for it if that
264
- setting is on. When the file names a gateway, the note adds that the gateway is signed in to first and is given a
265
- proof of your password. An imported profile never takes a saved account by itself, whatever its group's defaults say,
266
- nor a gateway account (whose proof would go to the gateway the file named) or a kind (an xrdp one would get the
267
- password without Network Level Authentication, unasked): it is a Windows desktop that asks for its sign-in, unless a
268
- password was saved already for that address reached the same way (through the same gateway, or none; not one version
269
- 0.5.0 saved there for a desktop reached through a gateway, which is forgotten). The address, gateway, user name and
270
- domain are shown faithfully (an international name as the punycode it resolves to, so a look-alike can't pose as a
271
- name you know; one with characters that don't show isn't imported). **Add only** adds the profile without connecting.
272
- A file whose address, user name, domain (in any case) and gateway a profile has already opens that profile instead; when
273
- the file turns the clipboard off and that profile shares it, you are asked first whether to turn it off there.
274
-
275
- Its **Connect** setting can name an SSH profile instead of connecting directly. The address is then as that host sees
276
- it, and opening the profile opens that SSH tab and shows the desktop over it once SSH is connected. Such a desktop is
277
- also offered in the menus of that SSH profile's tabs, next to the host's own desktop, so it works like a desktop
278
- added with **Desktops › Add a desktop behind \<host\>…**, but with a place in the profile list.
279
-
280
- In Tabby's config file:
281
-
282
- ```yaml
283
- profiles:
284
- - type: rdp
285
- name: Office PC
286
- options:
287
- host: 192.168.1.20 # as this computer sees it (or as the SSH host sees it, with via)
288
- port: 3389
289
- kind: windows # or xrdp, or gnome
290
- username: alice # optional
291
- via: '' # or the id of an SSH profile to go through
292
- gateway: '' # or an RD Gateway to go through: rdgw.example.com, or host:port
293
- gatewayAccount: '' # or a saved account's id, for a gateway that takes another account
294
- clipboard: off # optional: its own clipboard sharing, both, fromRemote or off; '' for the setting's.
295
- # Left out, its group's and Tabby's profile defaults decide (see Clipboard)
296
- ```
120
+ Clipboard, shared folders and microphone settings determine what a remote desktop can access.
121
+ See [sharing and controls](docs/sharing.md) and [accounts and certificate trust](docs/credentials-and-trust.md).
297
122
 
298
- A direct connection is a plain TCP connection from this computer, encrypted with TLS like any RDP client's, with nothing
299
- else between the desktop and the network on the way. So its certificate is checked as a browser checks a website's: one
300
- valid for the desktop's name (or address) by the certificate authorities this computer trusts connects without a
301
- question (an organisation's desktops often have one). Any other, such as the self-signed one most RDP servers make for
302
- themselves, is shown on the first connection before anything of your sign-in is sent: the address, why it can't be
303
- verified, its SHA-256 fingerprint and what it says of itself (whom it was issued to and by, and its dates), with **Trust
304
- the certificate** and **Cancel** (what Enter picks). Why it can't be verified is Tabby's own reading of the certificate
305
- (self-signed, from an authority this computer doesn't trust, issued for another name, expired, …), not only what the TLS
306
- library reported last, which whoever makes the certificate can choose. What it says of itself is its own word, which
307
- nothing has checked, unless its chain leads to an authority this computer trusts (where another machine's certificate
308
- shows that machine's name) and the TLS library didn't refuse it for a reason of its own (a limit set on the authority,
309
- say): an issuer you would expect there proves nothing. Check the fingerprint with whoever runs the desktop, some other
310
- way than this connection, before you trust it. For a server without Network Level Authentication, the question says that
311
- signing in would send it your password itself. Once trusted it is remembered, and a different
312
- certificate later stops the connection as above, whatever vouches for it. One an authority vouched for may be renewed: a
313
- replacement it vouches for too connects, and the desktop's log says so. The same one connects only while that holds:
314
- once it has expired, or its authority is gone from this computer's store, it is asked about as at first, since you never
315
- confirmed it. A certificate whose only use is Remote Desktop Authentication (as Active Directory's Remote Desktop
316
- templates issue them) isn't valid for a server by Tabby's rules, whatever issued it, so it is asked about too, and again
317
- when it is renewed. Trusting a certificate never allows signing in without Network Level Authentication, which is asked
318
- about on its own.
319
-
320
- ### Through an RD Gateway
321
-
322
- Where desktops sit behind a Remote Desktop Gateway (the HTTPS front door many companies put before their Windows
323
- machines), give the profile the gateway's address in **RD Gateway**: `rdgw.example.com`, or `host:port` when it
324
- isn't on 443. The profile's address is then the desktop as the gateway sees it (`pc17.corp.example`). The connection
325
- goes to the gateway over HTTPS, signs in there, and the gateway connects it on; the desktop then asks for its own
326
- sign-in as usual, inside that tunnel.
327
-
328
- - **One sign-in by default.** The account you enter for the desktop also signs in to the gateway, as with Remote Desktop
329
- Connection's "use my RD Gateway credentials for the remote computer". A gateway that takes another account: pick a
330
- [saved account](#saved-accounts) under **Gateway account**; its password is asked for once and kept with the account.
331
- A remembered desktop password is kept for the gateway it was entered for (whichever account signs in to the gateway),
332
- so it is never sent through a different gateway named for the same address without asking; a new gateway, user name,
333
- domain or account asks again, and a new address takes the password along, unless a desktop is known at that address
334
- already. Version 0.5.0 kept such a password for the address alone, where a desktop at that address without a gateway
335
- would find it: those of the desktops configured with a gateway by then are forgotten after the update, once in each
336
- computer's keychain and once in Tabby's Vault, the first time a password is looked up, saved or forgotten there, and
337
- both desktops ask once. Until that has been done (a keychain that doesn't answer, a Vault whose passphrase prompt was
338
- cancelled), such a password isn't used. A [saved account](#saved-accounts) is one password for every desktop that
339
- names it, wherever each of them goes.
340
- - **A refused sign-in says who refused it.** When it was the gateway (a wrong password, or its policy doesn't let the
341
- account in), the form comes back saying so, and nothing has gone to the desktop. A desktop the gateway's policy
342
- doesn't let the account reach, or that the gateway can't reach, is an error with that reason.
343
- - **The gateway's certificate** is checked as a direct desktop's is ([above](#remote-desktop-profiles)):
344
- accepted when it is valid for the gateway's name by the certificate authorities this computer trusts (with a recent
345
- Tabby, an organisation's own in the system's store counts); any other (self-signed, say) is shown on the first
346
- connection and connected only after you confirm its fingerprint, because your sign-in reaches the gateway as a proof
347
- of your password. A later change stops the connection, before the sign-in goes out, until you trust the new one,
348
- unless an authority vouches for the new one and the one before wasn't one you trusted yourself (a gateway's
349
- certificate remembered by 0.5.0 is replaced so too, whichever way it was remembered). The desktop beyond the gateway
350
- has a certificate of its own: checked the same way for a remote desktop profile, remembered on first use behind an SSH
351
- host. Remembered ones are listed under Settings › Remote Desktop › Certificates.
352
- - **Behind an SSH host too.** A desktop added behind an SSH host takes a gateway the same way (the **RD Gateway**
353
- field of its form): the gateway is then reached from that host.
354
-
355
- It speaks the gateway's WebSocket transport (Windows Server 2012 R2 and later) and signs in with a user name and
356
- password (NTLM, bound to the gateway's TLS certificate as gateways require by default). Smart cards, sign-in pages
357
- and one-time codes at the gateway are not supported.
358
-
359
- ## Saved accounts
360
-
361
- A saved account is a login defined on its own: a name, a user name (and domain), and its password, stored once. Any
362
- desktop can pick it instead of typing a user name into its profile, and both ways work: a profile's own user name keeps
363
- its own saved password, per user, for that address. An account is handy for keeping logins in one place, and for one
364
- used on several desktops (a domain admin, a lab user), whose password is then changed once for all of them.
365
-
366
- **Settings › Remote Desktop › Accounts** lists them, with the desktops that use each one (click a name to open its
367
- settings), and adds, edits and removes them. A desktop picks its account in its profile's **Account** field, or in the
368
- form that adds a desktop behind an SSH host; **New account…** there adds one on the spot. A profile group's defaults
369
- for **Remote desktop (RDP)** can pick an account for every profile in the group (**Profiles & connections**, the group's
370
- menu), which is how to give a whole group of servers one sign-in.
371
-
372
- Signing in with a saved account that has no password yet, or whose password a server refused, asks for it, and the
373
- form saves what you enter as the account's new password for every desktop. A refused password is not dropped by
374
- itself: one server refusing it doesn't make it wrong for the others. **Sign in again…** on such a desktop asks anew.
375
-
376
- The accounts' names and user names are in Tabby's config (`remoteDesktop.accounts`); the passwords are in Tabby's Vault
377
- when it is enabled (encrypted, and carried by Tabby's config sync), else in the system keychain. Removing an account
378
- removes its password and sets its desktops back to asking, a profile in a group with a default account included: it asks
379
- rather than take that default. A desktop's saved password that an edit or a removal forgets goes at once from each store
380
- that can be read, Tabby's Vault or the keychain. In one that can't be just then (the Vault locked and its prompt
381
- cancelled, the keychain not answering) it isn't used, and goes once that store can be read while the Tabby window is
382
- open; an edit or a removal says so. Should the window be closed before that, it is found again by a desktop at that
383
- address (**Sign in again…** in the desktop's menu replaces it). The desktop's remembered certificate stays too, so that
384
- the password goes only to the machine it was saved for: a removal keeps it (Settings › Remote Desktop › Certificates can
385
- forget it), and a new address leaves it at the old one too, as well as taking it along.
386
-
387
- ## Clipboard
388
-
389
- While a desktop has the keyboard, what you copy here goes to it and what you copy there comes here: text, pictures and
390
- files. That is what makes it feel like part of this computer, and it also means that the desktop sees what is on your
391
- clipboard whenever it has the keyboard (what you copy while you work in it, and what you copied elsewhere before you
392
- clicked back into it), passwords from a password manager included, and can put anything on your clipboard, such as a
393
- command for you to paste into a terminal here. For a desktop you don't trust that far, **Settings › Remote Desktop ›
394
- Settings › Clipboard sharing** narrows it:
395
-
396
- - **Both ways**, the default.
397
- - **Only from the remote desktop to this computer:** what you copy here stays here, and a desktop connected this way
398
- only ever gets an empty clipboard from this side; what you copy there still comes here, files included.
399
- - **Off:** the clipboard is left out of the connection altogether, files included.
400
-
401
- A desktop can have its own: **Clipboard** in its profile's settings (or its profile group's, or Tabby's defaults for
402
- remote desktop profiles), or in the form of a desktop added behind an SSH host (the host's own desktop follows the
403
- setting); the Clipboard menu on such a desktop says so. A desktop configured twice behind a host, as an entry and as an
404
- RDP profile at the same address, gets the narrower clipboard of the two, and a desktop opened with a narrower clipboard
405
- while it is open already (from another profile for it, say) narrows the open one until it is closed, its reconnects
406
- included, and when it is shown again after its server ended it; its Clipboard menu says so meanwhile. Changes apply on
407
- the next connection, Reconnect included. Narrowing the setting also stops anything more going from here right away to
408
- the open desktops that follow it, takes back the files offered to them, and stops a paste to all desktops or a save of
409
- several files that is under way before its next step. Narrowing applies in full only once they reconnect: reconnect a
410
- desktop you don't trust that far. **Paste to all desktops** leaves out the desktops that don't take this computer's
411
- clipboard and says which. Shared folders are a setting of their own, and screenshots and **Copy log** (Settings ›
412
- Remote Desktop › Desktops › Open desktops) still go to your clipboard: they are your own actions.
413
-
414
- ## Shared folders
415
-
416
- A folder on this computer can appear as a drive on the remote desktop, as mstsc's drive redirection does: in
417
- **Settings › Remote Desktop › Settings › Shared folders**, **Share a folder…** picks one. On the remote it is
418
- `\\tsclient\<name>` ("<name> on <this computer>" under This PC in Explorer), named after the folder; **Read-only**
419
- keeps the remote from changing, adding or removing anything in it. Every remote desktop you connect to sees the shared
420
- folders, so share only what each of them may have, and remove a folder to stop sharing it. Changes apply on the next
421
- connection.
422
-
423
- <p align="center"><img src="docs/images/shared-folders.png" width="548" alt="Shared folders in Settings › Remote Desktop: two folders, one read-only, and Share a folder…"></p>
424
-
425
- Files are served through the RDP connection as the remote reads and writes them, which suits opening and saving
426
- documents in place; for moving large files, copying through the clipboard is just as quick. They are read and written
427
- in the background, so a slow disk or network folder slows the drive down, not Tabby.
428
-
429
- The remote gets the shared folder and nothing else: a symbolic link works when it points inside the folder, and one that
430
- leads out of it isn't shown, read or written through. Only files and folders are served (no devices or pipes). A file
431
- with more than one name (a hard link, as pnpm's `node_modules` and some backup tools make) is read-only from the remote
432
- (as its count of names is when it is opened), since the same file may be outside the folder too; the remote can still
433
- read it, as any file in the folder. A desktop can have up to 1,024 files open at once, and all the desktops in a Tabby
434
- window 2,048 together. On macOS and Windows a Tabby window may have far more open than that; on Linux it depends on the
435
- system's limit, and where that is 4,096 or less, these are half of it or more. The remote is shown 1 GB less free space
436
- than the disk has (on a disk under 20 GB, a twentieth of its size less), and can't take that by making a file larger
437
- than what it writes to it: a file grows beyond what is written to it only within the free space of the disk it is on (a
438
- disk mounted inside the folder has its own), less that much. Where files can have holes (APFS, ext4), each file can grow
439
- so, taking no space until it is written. What the remote writes takes space as any copy does.
440
-
441
- Windows mounts shared folders (tested); xrdp can when built with FUSE (under `~/thinclient_drives`); GNOME Remote
442
- Desktop doesn't serve drives, so there the clipboard is the way.
443
-
444
- ## Several desktops in one tab
445
-
446
- Split a tab (Tabby's **Split** in the tab's menu, or drag one tab onto another) and each pane can show a desktop: one
447
- machine's desktop next to another's, or next to its own console. Right-click any of them:
448
-
449
- - **Paste to all \<n\> desktops in this tab** pastes what's on your clipboard on every desktop in the tab, in whichever
450
- window is active on each: text, a picture, or files and folders copied in Finder (or Explorer, or Files). Desktops
451
- that don't take this computer's [clipboard](#clipboard) are left out, and a note says which. So is a desktop whose
452
- console is in front, or that is behind a pane maximized over it (Tabby's **Maximize the active pane**): only the
453
- desktops showing get the paste, and the menu counts only those.
454
- - **Type into all \<n\> desktops in this tab** sends every key you type on one desktop to the others too, shortcuts and
455
- **Send keys** included, until you turn it off. An orange label on each desktop says so while it's on. The mouse stays
456
- per desktop, and desktops in view-only mode, with their console in front or behind a maximized pane, are left out.
457
- - **Make panes even** evens out the split's panes, which Tabby does itself but offers nowhere else.
458
-
459
- As you click into a desktop, its name shows in its corner for a moment, like a TV naming its input ("BUILDBOX", or "WIN-11 ·
460
- via buildhost · 1920×1080"). It shows by default where it helps (in a split, and for a desktop other than the tab's own
461
- connection); **Settings › Remote Desktop › Desktop name overlay** sets when, and its font, size, place and color, with a
462
- preview. Desktops are named after their SSH profile's name.
463
-
464
- ## VMs on a host
465
-
466
- When you right-click an SSH host, the plugin looks at the host's libvirt VMs (`virsh`, as your SSH user; read-only, at
467
- most once a minute; on a Windows host, [Hyper-V's](#hyper-v)) and lists the ones with a desktop under **Desktops**, with nothing to set up:
468
-
469
- - a running VM whose RDP port answers: Windows, or Linux with xrdp;
470
- - a Windows VM that's shut off: **Start and open**, which starts it (`virsh start`) and connects as soon as it answers.
471
-
472
- A Linux VM that runs GNOME is left out: its desktop is reached by SSH-ing to it (its own desktop, or `ssh` typed in a
473
- console on the host, [above](#use)). A VM found this way asks for its account the first time, like any Windows or xrdp
474
- desktop; one the host lists as Linux (xrdp) also asks once before your password goes to it without Network Level
475
- Authentication, since that it is xrdp is only the host's word. **Save \<name\> to this host's desktops** in its menu
476
- keeps it, for a name of your own and other settings; its kind stays the host's word, and asks the same way (a VM saved
477
- with an earlier version too), until you pick a kind for it in its edit form. VMs aren't looked for on a machine
478
- reached with `ssh` typed in another host's console. The menu lists 256 VMs at most, and says so when a host has more;
479
- add other libvirt VMs by their address with **Add a desktop behind \<host\>…**. Hyper-V VMs past the first 256 aren't
480
- offered in the menu: one opens from a `remoteDesktop.desktops` entry in Tabby's config file, with `via` and `hyperv:
481
- <its id>` (see [above](#windows-and-other-desktops-behind-a-host)).
482
- **Settings › Remote Desktop › Find virtual machines on SSH hosts** turns this off.
483
-
484
- A VM the plugin started can go back off by itself: **Settings › Remote Desktop › Shut down VMs it started** (5
485
- minutes, 15 or an hour without a desktop open; never, by default). A small watcher on the SSH host sees to it, so it
486
- also works once the tab is closed or Tabby has quit: after that long with no connection to the VM's desktop through the
487
- host, it asks the VM to shut down (`virsh shutdown`, with a key press first, since Windows ignores the request while its
488
- screen sleeps), then ends. VMs that were already running are never touched, and neither are machines woken over the
489
- network.
490
-
491
- ### Hyper-V
492
-
493
- A Windows SSH host that runs Hyper-V gets the same: its VMs (`Get-VM`, with PowerShell over the SSH connection) are
494
- listed under **Desktops**, and one that is off is started when opened (`Start-VM`). What opens is the VM's console, as
495
- Hyper-V Manager's **Connect** shows it: reached through the host (its port 2179), so the VM needs no network, no
496
- Remote Desktop turned on, not even an operating system. A Windows guest that is up is asked for an enhanced session
497
- (its own sign-in screen, the clipboard, sound, shared folders, resizing); before that, and for other guests, it is the
498
- basic console: the picture, keyboard and mouse. The basic console is what has been tested so far; enhanced sessions
499
- take the same path but haven't been tried against a running Windows guest yet.
500
-
501
- The sign-in is the **host's**, not the guest's: an account that may open the VM's console there, which the plugin
502
- asks for once per host (the SSH user is filled in). That is an administrator, a member of the host's Hyper-V
503
- Administrators group, or an account given access with `Grant-VMConnectAccess`. A local administrator other than the
504
- built-in one can list VMs over SSH and still be refused the console, since Windows gives it a reduced token over the
505
- network; Hyper-V refuses by ending the connection at once, and the plugin then asks again, saying so. Listing VMs
506
- takes an account Hyper-V lets do that (an administrator of the host, in practice).
507
-
508
- ## desk: the console on the desktop
509
-
510
- Type `desk` in an SSH console, and the tab switches to that machine's desktop with a terminal attached to the very same
511
- shell: its scrollback, working directory, jobs and running programs. Type on either side; both show it.
512
-
513
- <p align="center">
514
- <img src="docs/images/console.png" width="49%" alt="A console">
515
- <img src="docs/images/desk.png" width="49%" alt="The same shell on the desktop, after typing desk">
516
- </p>
517
-
518
- `desk` is off by default, because it makes interactive SSH logins on that machine start inside a shareable session.
519
- Turn it on in the pane's menu under **Remote Desktop › Settings**, or in Settings › Remote Desktop. The sessions are handled by a small helper, `trd-pty`, rather than tmux, so
520
- your terminal's scrollback, colors and shortcuts stay as they are. Turning it off removes it again. Details:
521
- [docs/desk.md](docs/desk.md).
522
-
523
- Before it acts on what `desk` prints, Tabby checks three things: the key `desk` sends, which only your account on that
524
- machine can read and which Tabby learns when it opens the machine's desktop with `desk` on; that it is the key of the
525
- machine the pane is connected to (its SSH host, or the machine `ssh` typed there went to); and that the pane is the
526
- one you're in. So other output that only looks like what `desk` prints is ignored, and `desk` works on a machine once
527
- its desktop has been opened with `desk` on from this Tabby, or from one that shares its config through config sync
528
- (after updating from 0.5.0 or earlier, open it once again). The key tells `desk` apart from look-alikes, not from the
529
- machine itself, which can always send it, nor from a recording of `desk`'s output (a terminal log, `script`,
530
- asciinema), which holds it: shown again in that machine's pane while you're in it, it counts as `desk`. Open the
531
- desktop of a machine you don't trust with `desk` off, which also has Tabby forget a key it had for it.
532
-
533
- ## Settings
534
-
535
- Open **Settings › Remote Desktop** in Tabby, right-click the desktop button in Tabby's header, or open **Settings** in the Remote Desktop section of a terminal's or tab's menu.
536
- Desktop settings are stored in Tabby's config under `remoteDesktop`; update preferences and installation history
537
- are local to this computer:
538
-
539
- | Setting | Default | |
540
- |---|---|---|
541
- | When the pane is resized (`resize`) | Resize the remote desktop to fit (`live`) | Or reconnect at the new size (`reconnect`), or keep the resolution (`off`). |
542
- | Keep the resolution: scale to fit or actual size (`zoom`) | Scale to fit (`fit`) | With `resize: off`: `actual` shows one remote pixel per point, with scroll bars when the desktop is larger than the pane (a Retina-sized desktop shows at twice the size). |
543
- | Sharpness (`sharpness`) | Standard (`standard`) | Retina (`retina`): device pixels, with the remote's scale set to match. |
544
- | For *this desktop* only (`desktopSharpness`) | As above | In the menu of a tab with a desktop open: Standard or Retina for that desktop, whatever the default. Kept by desktop (`user@host`, `user@host#address` for one behind a host, or `rdp#address` for a remote desktop profile's own tab). |
545
- | Sound (`sound`) | On | Applies on the next connection. |
546
- | Video decoding (`h264`) | On | H.264 decoded by Tabby's browser engine (hardware-accelerated where available), for what the remote sends as video; applies on the next connection. |
547
- | Microphone (`microphone`) | Off | Send your microphone to a remote desktop that asks for it, as one does while an app there records. Turning it on applies on the next connection; turning it off stops it at once, also on a desktop still connecting. A desktop's menu can stop it for that desktop alone, until it is turned back on there or that Tabby window is closed. |
548
- | Clipboard sharing (`clipboard`) | Both ways (`both`) | Or only from the remote desktop to this computer (`fromRemote`), or off (`off`), for text, pictures and files alike; a desktop's own (`clipboard` in its profile or its `desktops` entry) takes its place ([Clipboard](#clipboard)). Applies in full on the next connection; narrowing it also stops the sending at once to open desktops that follow it. |
549
- | Shared folders (`sharedFolders`) | None | `[{ path, name, readOnly }]`: folders shared as drives with every remote desktop ([Shared folders](#shared-folders)). Applies on the next connection. |
550
- | Show connection status (`connectionStatus`) | Off | The indicator in the desktop's corner; fades when the pointer comes near. |
551
- | Mac shortcuts (`macShortcuts`) | On | macOS. Off: ⌘ is the Windows key. |
552
- | Send text as typed (`unicodeKeys`) | Off | Sends the characters the keyboard produces rather than key positions, so dead keys and a layout the remote doesn't have come out right; keys with Ctrl, Alt or ⌘ still go by position. Windows types any character; GNOME only those its own layout has (mutter has no keycode for the others). Input methods (CJK) are not supported yet. |
553
- | Shortcuts (`hotkeys.remote-desktop-*`) | ⌘⇧G / Ctrl+Shift+G for the switch; the rest unbound | Tabby's hotkeys: the switch between desktop and console, view only, screenshot, Ctrl+Alt+Del, type into all, paste to all, connection status, disconnect. Changed on the settings page (Getting started › Shortcuts) or in Settings › Hotkeys. |
554
- | Saved accounts (`accounts`) | None | `[{ id, name, username, domain }]`; see [Saved accounts](#saved-accounts). The passwords are in the Vault (encrypted, part of the config) or the keychain, never in plaintext in the config. |
555
- | Bring the console along with `desk` (`desk`) | Off | Installs `desk` and a login line on each machine you open a desktop on; applies on the next connection there. The key each machine's `desk` sends is kept as a fingerprint (`deskKeys`), from a machine whose desktop was opened with this on, and forgotten when it is opened with this off. |
556
- | Session backend (`sessionBackend`) | `native` | For `desk`: `native` (trd-pty) or `tmux`. Config file only. |
557
- | Find virtual machines on SSH hosts (`discoverVMs`) | On | Lists a host's libvirt VMs with a desktop in its menu ([VMs on a host](#vms-on-a-host)). |
558
- | Shut down VMs it started (`shutDownIdle`) | Never | 5, 15 or 60: minutes without a desktop open after which a VM the plugin started is shut down again ([VMs on a host](#vms-on-a-host)). |
559
- | Write a log file (`diagnosticLog`) | Off | `debug` or `trace`: each desktop opened from then on writes its connection log, with IronRDP's log at that level, to a file of its own in the log folder (`tabby-rdp-logs` next to Tabby's config), readable by you alone, for a bug report. Keys, passwords, licenses, tokens and other byte strings are left out of the file. [Questions and problems](#questions-and-problems) |
560
- | Check for updates automatically (Updates tab) | On, Stable | Checks npm once a day; choose Stable or Preview, check manually, and install a compatible version explicitly. [Versions and recovery](#versions-and-recovery). |
561
- | Desktop name overlay (`osd`) | When it helps | `show` (`auto`, `always`, `off`), `font`, `size`, `position`, `color` (empty: white; else a color name, `#hex`, or a color function of numbers such as `rgb()`) and `seconds`; the settings page previews it, at a resolution you pick. |
562
-
563
- ## Requirements
564
-
565
- - **Tabby 1.0.236 or newer**, on macOS, Windows or Linux. On a fresh Windows, Tabby
566
- itself needs the [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist)
567
- for SSH.
568
- - **Linux desktops:** GNOME Shell and GNOME Remote Desktop 46 or newer (Ubuntu 24.04, for example), a systemd user
569
- session, and SSH access with a key or agent. `desk` also needs `python3` and GNOME Terminal. No root, no display, no
570
- login screen.
571
- - **Other Linux desktops:** xrdp running on the machine, with a desktop for its sessions (on Debian and Ubuntu:
572
- `sudo apt install xrdp xfce4`, or KDE, MATE, …), and an account with a password. xrdp's default settings work
573
- (`security_layer=negotiate`, its own certificate); the port is read from `/etc/xrdp/xrdp.ini`. Sound needs
574
- `pipewire-module-xrdp` or `pulseaudio-module-xrdp`.
575
- - **Windows desktops:** Windows 10 or 11 Pro, or Windows Server, with Remote Desktop turned on, reachable from an SSH
576
- host or running OpenSSH Server itself.
577
-
578
- The plugin checks the host's available features through a shared compatibility layer. Connection logs include the
579
- host and runtime versions, declared xterm dependency and observed capabilities to help diagnose forks and nightlies.
580
-
581
- ## Tested environments
582
-
583
- The visual QA matrix runs real remote desktops in native Tabby clients on **macOS, Windows and Linux**. The current
584
- RDP matrix uses ARM64 Tabby 1.0.236 / Electron 43.7.0 on all three client platforms:
585
-
586
- | Remote desktop | Server stack | Visual QA coverage |
123
+ <a id="desk-the-console-on-the-desktop"></a>
124
+
125
+ With **desk** enabled, typing `desk` in an SSH console moves the same shell, history and running jobs into a terminal
126
+ on the GNOME desktop. It is optional and off by default. [How desk works](docs/desk.md).
127
+
128
+ ## RDP client preview
129
+
130
+ **Settings › Remote Desktop › Settings › RDP client** selects **IronRDP** or experimental **FreeRDP**. Profiles and
131
+ behind-host desktops can override the default. Changes apply on the next connection.
132
+
133
+ In an RDP profile tab's **…** menu, choose **RDP client** to switch that profile and optionally **Reconnect to apply**.
134
+
135
+ | Client | Availability | Capabilities |
587
136
  |---|---|---|
588
- | Ubuntu 24.04 | GNOME 46 / GNOME Remote Desktop | Desktop pixels, keyboard input, resize, tab return and reconnect |
589
- | Fedora 44 | GNOME 50 / GNOME Remote Desktop | Same RDP lifecycle checks |
590
- | Debian 13.7 | GNOME 48 / GNOME Remote Desktop | Same RDP lifecycle checks |
591
- | Rocky Linux 9 | Xfce 4.18 / xrdp 0.10.6.1 / xorgxrdp 0.10.5 | Same RDP lifecycle checks |
592
- | Windows 11 | Windows Remote Desktop | Same RDP lifecycle checks, with H.264 disabled |
593
- | Fedora 44 KDE Plasma | KRDP / KPipeWire 6.7.5, FreeRDP 3.32.1; two opt-in server patches | H.264 pixels, input, tab return, reconnect and fixed-monitor client fitting |
594
-
595
- The KDE row is experimental: the tested profile needs server-side color and authentication compatibility patches.
596
- Stock KDE builds and live remote monitor resizing are not qualified. FreeRDP is a dependency of that KRDP server;
597
- tabby-rdp's client continues to use IronRDP. Rocky's Xfce desktop uses **xrdp**, a different RDP server.
598
- The testbed includes the opt-in KDE patches and reproducible setup instructions; see the
599
- [visual QA guide](docs/visual-qa.md) for exact identities, evidence and remaining gaps.
600
-
601
- Hosted CI also runs native settings and plugin smoke checks on macOS, Windows and Linux; those checks do not qualify
602
- x86_64 RDP sessions. Recent host compatibility tests cover official Tabby **1.0.238** on macOS with xterm 5, and
603
- upstream xterm 6 builds on macOS and Linux. The package installation dialog is tested on macOS with Tabby 1.0.238;
604
- Windows qualification of that dialog remains pending. See the [host test matrix](test/README.md#host-qualification).
605
- These focused checks do not establish clipboard, shared-folder, audio or microphone coverage across every matrix cell.
606
-
607
- ## Built on IronRDP
608
-
609
- The desktop is [IronRDP](https://github.com/Devolutions/IronRDP)'s web client: an RDP implementation in Rust, compiled
610
- to WebAssembly, with a web component. It connects to Windows, but a browser-based client for GNOME Remote Desktop
611
- needed more: GNOME only speaks RDP's graphics pipeline, which IronRDP's web client didn't offer; it resizes its
612
- monitor in a way the web client didn't follow; and it depends on details of the sound and dynamic-channel protocols
613
- that IronRDP got slightly wrong. The web client also had no sound at all.
614
-
615
- tabby-rdp ships IronRDP with a short series of patches ([ironrdp/](ironrdp)). Before each release, CI rebuilds it
616
- from IronRDP's source and the patches, and the release goes out only if the two builds are identical, byte for byte
617
- ([how](ironrdp/README.md#reproducing-vendor)). The fixes go upstream, one by one:
618
-
619
- | Change | Upstream |
137
+ | IronRDP (default) | macOS, Windows and Linux | The features above, subject to the server's capabilities |
138
+ | FreeRDP (experimental) | macOS ARM64; Windows and Linux ARM64/x64 native helpers | In-tab display, keyboard/mouse, scaling, resize, view only, screenshots and reconnect. Clipboard, files, audio, shared folders, Hyper-V and H.264 are pending. |
139
+
140
+ Windows Server performance has **not been benchmarked**. See [FreeRDP builds, licensing and capability notes](native/README.md).
141
+ To try the preview, open **Settings › Remote Desktop › Updates**, choose **Preview**, and install the offered version.
142
+
143
+ <a id="settings"></a>
144
+ <a id="saved-accounts"></a>
145
+ <a id="limitations"></a>
146
+
147
+ ## User guides
148
+
149
+ | Guide | Find out about |
620
150
  |---|---|
621
- | Keep the session when a server sends data on a channel the client declined | [Devolutions/IronRDP#2005](https://github.com/Devolutions/IronRDP/pull/2005) |
622
- | Fit the web component to its container, not the whole window | [Devolutions/IronRDP#2006](https://github.com/Devolutions/IronRDP/pull/2006) |
623
- | Set up the clipboard before signaling `ready`, so it works for apps that connect right away | [Devolutions/IronRDP#2018](https://github.com/Devolutions/IronRDP/pull/2018) |
624
- | Echo the correct size in the sound channel's Training Confirm | [Devolutions/IronRDP#2019](https://github.com/Devolutions/IronRDP/pull/2019) |
625
- | The graphics pipeline in the web client, following its resets | Covered by [Devolutions/IronRDP#1977](https://github.com/Devolutions/IronRDP/pull/1977) (not ours; [tested with GNOME](https://github.com/Devolutions/IronRDP/pull/1977#issuecomment-5851624036)) |
626
- | Sound in the web client | [Devolutions/IronRDP#2020](https://github.com/Devolutions/IronRDP/pull/2020) |
627
- | Let the host send key events to a session | [Devolutions/IronRDP#2026](https://github.com/Devolutions/IronRDP/pull/2026) (design under discussion) |
628
- | Decode Windows' RemoteFX Progressive refinements | Covered by [Devolutions/IronRDP#2010](https://github.com/Devolutions/IronRDP/pull/2010) and [#1977](https://github.com/Devolutions/IronRDP/pull/1977) (not ours) |
629
- | H.264 in the web client, decoded by the browser (WebCodecs) | Not submitted yet: waits for #1977 |
630
- | Microphone in the web client | Not submitted yet: waits for #2020 |
631
- | Keep clipboard sync working for the other desktops when one closes | Not submitted yet |
632
- | Sync the clipboard only for the desktop that has the focus | Not submitted yet |
633
- | Drive redirection in the web client, through a JavaScript file system | Not submitted yet |
634
- | Send chunked static-channel messages without CHANNEL_FLAG_SHOW_PROTOCOL, as Windows' drive redirector expects | Not submitted yet |
635
-
636
- The aim is to make IronRDP's browser client work well with both Linux and Windows desktops, for everyone who embeds
637
- it, not just this plugin.
151
+ | [Connections and VMs](docs/connections.md) | Direct RDP, desktops behind SSH, profiles, `.rdp` imports, gateways, VM discovery and wake-up |
152
+ | [Accounts and trust](docs/credentials-and-trust.md) | Saved accounts, edits/removals, certificate prompts, NLA and generated GNOME credentials |
153
+ | [Sharing and controls](docs/sharing.md) | Clipboard, files, shared drives, microphone, keyboard and split-tab actions |
154
+ | [Settings and updates](docs/settings.md) | Setting names/defaults, preview versions, rollback and recovery |
155
+ | [Compatibility and coverage](docs/compatibility.md) | Server requirements, tested platforms, experimental support and limitations |
156
+ | [Troubleshooting](TROUBLESHOOTING.md) | Connection failures, installation problems, logs and recovery |
157
+
158
+ <a id="built-on-ironrdp"></a>
638
159
 
639
160
  ## Development
640
161
 
162
+ IronRDP is a Rust RDP client compiled to WebAssembly. We ship a reviewed patch series and contribute fixes upstream;
163
+ see [IronRDP and contributions](docs/ironrdp.md). The optional native FreeRDP helper is built separately.
164
+
641
165
  ```sh
642
166
  npm ci --ignore-scripts
643
- npm run build # TypeScript to dist/
644
- npm run typecheck # plugin and test TypeScript
645
- npm run test:unit # standard unit suite; no remote machine needed
646
- npm run pack:release # publishable package with runtime-only dependency metadata
647
- scripts/sandbox.sh # a separate Tabby with this plugin linked in (macOS), DevTools on port 9334
648
- npm test # end-to-end suites against a test machine: see test/README.md
649
- npm run build:ironrdp # rebuild vendor/ from IronRDP and ironrdp/patches: see ironrdp/README.md
167
+ npm run build
168
+ npm run typecheck
169
+ npm run test:unit
170
+ npm run pack:release
171
+ scripts/sandbox.sh # a separate Tabby profile on macOS
650
172
  ```
651
173
 
652
- - [docs/visual-qa.md](docs/visual-qa.md): the local visual QA dashboard, native client/server matrix, reviewed screenshot
653
- baselines, defect injection, optional AI review, scheduling and evidence retention. Run `npm run test:qa` for its
654
- service tests; follow the guide to configure real desktop targets. Private credentials and run artifacts stay local.
655
- - [docs/architecture.md](docs/architecture.md): how the pieces fit, the remote setup, and security notes.
656
- - [docs/desk.md](docs/desk.md): `desk` and trd-pty.
657
- - [test/README.md](test/README.md) and [testbed/README.md](testbed/README.md): the tests, and setting up test
658
- machines for them.
659
- - [CONTRIBUTING.md](CONTRIBUTING.md).
660
-
661
- ## Limitations
662
-
663
- - **One screen per connection on GNOME.** GNOME Remote Desktop's headless mode can't show the same screen to two
664
- clients (another computer, or another Tabby window): a second one gets an extra, empty screen. Opening a desktop
665
- that's open elsewhere asks whether to take it over (the other connection is disconnected, as on Windows; the session
666
- and its apps carry on) or to open a second screen.
667
- - **The headless GNOME session is a shell without `gnome-session`.** Apps work, X11 ones too (through XWayland), and so
668
- do GNOME's settings daemons for keyboard, media keys and custom shortcuts, accessibility and sound. The ones for
669
- power, sharing and local hardware don't run, so the session never suspends or blanks the machine.
670
- - **GNOME's login-screen mode** isn't supported: it hands clients over with a server redirection, which IronRDP can't
671
- follow yet. The plugin uses per-user headless sessions instead.
672
- - **Remembering a Windows password on Linux** needs an unlocked keyring (GNOME Keyring or KWallet), as it does for
673
- Tabby's own passwords. Without one, the plugin asks each time.
674
- - **GNOME Remote Desktop listens on all interfaces** (password-protected, TLS); it has no setting to listen on
675
- loopback only. See [docs/architecture.md](docs/architecture.md#security-notes) to restrict it.
676
- - **The microphone** needs the system's permission: macOS asks the first time a remote app records (if it was denied,
677
- allow Tabby in System Settings › Privacy & Security › Microphone, then restart Tabby), and Windows needs "Let desktop
678
- apps access your microphone". On GNOME, apps record from GNOME Remote Desktop's "Remoteaudio Source", which is the
679
- default input on a machine without a microphone of its own; otherwise pick it in Settings › Sound. On Windows, the
680
- remote machine must allow audio recording redirection (the Remote Desktop Session Host policy "Allow audio recording
681
- redirection").
682
- - **xrdp sessions are separate X sessions**, not the machine's screen, and use whatever `~/.xsession` or the system
683
- default starts. Don't have them start GNOME for a user who also has a GNOME session (the plugin's headless one, or
684
- a login at the machine): GNOME runs once per user.
685
- - **xrdp and a wrong password:** xrdp doesn't refuse the connection, it shows its own login window instead, where you
686
- can sign in. A remembered password that no longer works leads there each time; **Sign in again…** replaces it.
687
- - **What works on xrdp** depends on its channels: the clipboard through `xrdp-chansrv` (text; images and files as
688
- far as that xrdp version supports them), sound through the PipeWire or PulseAudio module. Live resize needs xrdp
689
- 0.10 or newer; with 0.9 (Ubuntu 24.04), the desktop keeps its size, scaled to fit, or choose **Reconnect at the new
690
- size**. xrdp's standard RDP security without TLS (`security_layer=rdp`) isn't supported. `desk` needs GNOME.
691
- - **RD Gateways** are signed in to with a user name and password; ones that ask for a smart card, a sign-in page or
692
- a one-time code, or that only take Kerberos, can't be used. Gateways before Windows Server 2012 R2 (no WebSocket
693
- transport) can't either. A desktop behind a gateway isn't started when it is off.
694
- - **Waking a desktop** over the network (Wake-on-LAN) starts it but never shuts it down again; for VMs, see
695
- [Shut down VMs it started](#vms-on-a-host).
174
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md) for the PR, test-build and release procedure.
175
+ See the [architecture](docs/architecture.md), [test guide](test/README.md), [testbed](testbed/README.md) and
176
+ [visual QA guide](docs/visual-qa.md) for implementation and qualification.
696
177
 
697
178
  ## Questions and problems
698
179
 
699
- Questions ("how do I…", "is this expected?") go to [Discussions › Q&A](https://github.com/meanaverage/tabby-rdp/discussions/categories/q-a);
700
- bugs and feature requests to the [issues](https://github.com/meanaverage/tabby-rdp/issues). A bug report is most useful
701
- with the connection log: **Settings › Remote Desktop › Desktops › Open desktops › Copy log**. For a connection that fails
702
- before the desktop opens, turn on **Settings › Diagnostics › Write a log file** (Debug) and open the desktop again: it
703
- writes a file of its own, with IronRDP's log, in the log folder the setting links to (`tabby-rdp-logs` next to Tabby's
704
- config). Keys, passwords, licenses, tokens and other byte strings are left out of the file; names and addresses stay, so
705
- look through it before you attach it.
706
- Start with the [troubleshooting guide](TROUBLESHOOTING.md) for common connection and installation problems.
180
+ Start with [Troubleshooting](TROUBLESHOOTING.md). Ask questions in [Discussions › Q&A](https://github.com/meanaverage/tabby-rdp/discussions/categories/q-a),
181
+ or report bugs and feature requests in [Issues](https://github.com/meanaverage/tabby-rdp/issues).
182
+
183
+ Include **Settings › Remote Desktop › Desktops › Open desktops › Copy log**. For failures before a desktop opens,
184
+ enable **Settings › Diagnostics › Write a log file** and retry. Logs omit passwords and protocol secrets but retain
185
+ names and addresses; check those before attaching one.
707
186
 
708
187
  ## License
709
188
 
710
- [MIT](LICENSE). The bundled IronRDP build is MIT or Apache-2.0 ([vendor/IRONRDP-LICENSE](vendor/IRONRDP-LICENSE)).
711
- Icons in the header are from [Font Awesome Free](https://fontawesome.com) (CC BY 4.0).
189
+ [MIT](LICENSE). IronRDP is MIT or Apache-2.0 ([license](vendor/IRONRDP-LICENSE)); FreeRDP, WinPR and OpenSSL 3
190
+ are Apache-2.0, with their license notices and WinPR's Unicode conversion notice included in each platform's helper package. [FreeRDP licensing](native/README.md#licensing).
191
+ Header icons are from [Font Awesome Free](https://fontawesome.com) (CC BY 4.0).
712
192
 
713
193
  tabby-rdp is an independent project, not affiliated with Tabby, Devolutions or the GNOME Project.