DOCUMENTATION

Your own RDP and SSH apps (native clients)

Besides opening a remote desktop or terminal in the browser, people can connect with the app they already use: Windows Remote Desktop (mstsc), the Windows App on a Mac, FreeRDP, OpenSSH. This page explains how it works, what is recorded, how to switch it on and how a user connects, step by step.

How it works: two paths, two modes each

Nothing opens inbound on your network. For RDP the user's app talks to Captivo's RD Gateway over HTTPS (WebSocket) on the workspace's own host; for SSH it talks to Captivo's jump host on port 2222. Both carry the bytes through the connector's outbound tunnel to the server. A short-lived ticket (two minutes) names the user, the resource and the workspace; it only starts a session, and the grant, its schedule, the user's status and the IP allowlist are checked again every minute while the session runs.

ModeWhenWho signs in to the serverRecorded / watched
DirectThe resource is not recordedThe user, with their own account (NLA for RDP, password or key for SSH)No. The stream is end to end; Captivo sees no screen, no keys. Start, end, refusals and bytes are in the audit log.
RecordedThe resource records sessions, or the Policy requires recordingCaptivo: the connector signs in with the account saved on the resource. The user types no password.Yes, like a browser session; live watching and take control work.

The mode is not a separate switch: it follows the resource's recording setting and the Policy's recording mode. Turn recording on and the same button gives a recorded session; turn it off and it falls back to direct.

Pick direct when people must use their own credentials on the server and you accept that Captivo sees nothing inside. Pick recorded for vendors and shared admin accounts: the vault password never reaches the user's machine, and every session is on record.
A remote desktop resource; the native client options sit on the same form.

Switching it on (admins)

Both options sit on the resource, off by default. Open Infrastructure → Resources, edit a Remote desktop (RDP) or SSH terminal resource (see Resources) and turn on Native RDP client or Native SSH client. The row text tells you which mode you get. Chips on the form show the result: Native RDP client (direct), Native RDP: recorded, Native RDP: not recorded or connector update needed; the same for SSH.

NeedsRDPSSH
Connector, direct mode2.39.0+2.39.0+
Connector, recorded mode2.52.0+2.49.0+
Live watching of the recording2.53.0+No connector update (data plane)
Connector installed asDocker. A connector installed as a program (Windows service, systemd) cannot serve remote desktops or SSH.
  • If the connector is older than the mode needs, the form says so. On a direct resource nothing breaks. On a recorded one the sessions are not recorded until you update, or, when the Policy's recording mode is required, users cannot connect with their own app at all (the browser still works). On a connector group only members that are new enough carry the session; see Connector groups and updates.
  • If you set the connector's ALLOWED_TARGETS, include the server's host:port (for example dc01.corp.example:3389 or 10.0.0.5:22).
  • A resource that Requires a moderator offers no .rdp file at all (a moderator cannot watch the user's own Remote Desktop app yet). Native SSH works there only when the resource is recorded, and the command appears once a moderator admits the session; see moderated sessions.
  • Password rotation: for a direct resource Captivo refuses to save with rotation on (native_with_rotation), because nobody knows a rotated password to type. A recorded resource may rotate: Captivo signs in. See password rotation.

Native RDP: connecting step by step

The user opens My access, finds the resource and presses .rdp file. A new file is made on every click and its ticket works for two minutes: open it right away. The ticket may be reused inside those two minutes (the app can retry), but the session does not reconnect by itself later (the file sets autoreconnection enabled:i:0): download a new file.

Windows (mstsc)

  1. Press .rdp file; double-click the downloaded file. Windows may warn that the publisher is unknown because the file is not signed; that is expected, choose Connect.
  2. Direct mode: mstsc connects through the gateway without asking for gateway credentials (the ticket is the access token), then asks for your own account on the server, for example CORP\anna, and does NLA with the server.
  3. Recorded mode: no prompt. Captivo signs in, and the desktop appears. If a password prompt shows up anyway, leave it empty and continue. On a self-hosted install without its own certificate the app asks once whether to trust the console's (self-signed) certificate.

macOS and iOS (Windows App)

Open the downloaded .rdp file with the Windows App (Microsoft's Remote Desktop client) and connect. The behaviour is the same as on Windows. This app names no keyboard layout, so typed text is logged as a US layout and the log says so.

Linux and FreeRDP 3

bash
xfreerdp3 ~/Downloads/DC-Native-RDP.rdp

FreeRDP reads the gateway and ticket from the file. In recorded mode it asks for a user name anyway; whatever you type is ignored. Clients that cannot use an RD Gateway with an access token (MobaXterm, for example) cannot connect this way; the browser session still works. Only the WebSocket transport is served: a client that falls back to the plain HTTP gateway transport gets an error.

What the .rdp file contains

A direct-mode file looks like this (the ticket is signed and different every time):

ini
full address:s:dc01.corp.example
gatewayhostname:s:acme.cloud.captivo.io
gatewayusagemethod:i:1
gatewaycredentialssource:i:5
gatewayprofileusagemethod:i:1
promptcredentialonce:i:0
gatewayaccesstoken:s:cr1.<signed ticket>
authentication level:i:2
enablecredsspsupport:i:1
screen mode id:i:2
smart sizing:i:1
dynamic resolution:i:1
redirectclipboard:i:1
redirectprinters:i:0
drivestoredirect:s:
redirectcomports:i:0
devicestoredirect:s:
usbdevicestoredirect:s:
autoreconnection enabled:i:0

A recorded-mode file differs in these lines:

ini
full address:s:acme.cloud.captivo.io      # the console host, not the server
enablecredsspsupport:i:0                  # no NLA with Captivo; the connector does NLA
prompt for credentials:i:0
bitmapcachepersistenable:i:0              # no tiles from the app's disk cache
  • Clipboard, drives and printers follow the resource's own rules and are written into the file and sent to the app as gateway redirection flags. A native client cannot block one direction, so a one-way rule (paste only, upload only) turns the whole channel off. Serial ports and plug-and-play devices are always off. In recorded mode the server side also keeps those channels closed. The app applies the direct-mode flags itself, so they hold for standard clients, not against a modified one.
  • Edit nothing in full address or gatewayhostname: the gateway uses the resource's own server and port whatever the client asks for.

Native SSH: connecting step by step

Under My access the user presses SSH. The dialog shows a ready command with a countdown (two minutes). Copy it into a terminal. The ticket can start several connections until it expires, which is what scp or a second terminal need. Connections already running keep going after expiry; Get a new command makes a new ticket.

Direct mode

The user types their user name on the server in the dialog (it is remembered per resource in that browser) and runs the command. The jump host (-J) has no password and no shell; the SSH server then asks for the user's own password or key.

bash
ssh -J k7f3q9wz2m4x@acme.cloud.captivo.io:2222 deploy@10.0.0.5

Recorded mode

The dialog already shows the saved account's name and the command carries a HostKeyAlias, so your SSH app files Captivo's key under Captivo's own name and never mistakes it for the server's. No password or key is needed; whatever user name you type is not used.

bash
ssh -J k7f3q9wz2m4x@acme.cloud.captivo.io:2222 -o HostKeyAlias=captivo-recorded.acme.cloud.captivo.io deploy@10.0.0.5
  • A banner states that the session is recorded, as which account you are signed in, and, when relevant, that you have administrator rights for this session only or that a moderator watches.
  • The first time, the SSH app asks twice whether to trust a key: once for the jump host acme.cloud.captivo.io:2222 and once for the "server" (Captivo's key again, under the alias). The dialog shows the SHA-256 fingerprint to compare. The key is stable across restarts, so you trust it once.

Windows, macOS, Linux

On Windows the command works in PowerShell and Windows Terminal (OpenSSH is built in); on macOS and Linux in any terminal. The command is plain OpenSSH ProxyJump (-J), so any client that supports a jump host can use it by setting the jump to <ticket>@<console host>:2222. Direct mode also works from VS Code Remote-SSH, which needs the server to allow TCP forwarding.

VS Code Remote-SSH and any other tool that needs port forwarding do not work on a recorded resource: -L, -R, -D, agent forwarding and X11 are refused because they cannot be recorded. In direct mode, forwarding inside the session follows the server's sshd_config (AllowTcpForwarding); the jump host itself allows only the one connection to that resource and refuses remote forwarding.

Need a different TCP service (a web console, a Redis) rather than a server's shell? That is a TCP tunnel, which uses the same jump host.

What is recorded, and what is not

DirectRecorded RDPRecorded SSH
Screen / terminalNoVideo (VP9), pointer drawn inTerminal output (asciicast), played in Recordings
Typed textNoAs the keystroke setting says; US and Turkish Q layouts, otherwise the log says the layout is unsupportedAs the keystroke setting says, masked at password prompts; keys typed into vim, top or less are left out
Password—Never in the recording; opens only on the connectorNever; a password typed at a prompt that does not echo is not recorded
Clipboard, drivesRules applied by the appRules enforced on the server side too; contents are not recordedSFTP is checked packet by packet; scp and rsync are allowed or refused as a whole
Where it lives—On the connector, encrypted like every recording (see Recording and monitoring).
  • In recorded SSH, file transfer follows the resource's File transfer setting. Downloads, uploads and changes (remove, rename, mkdir) are allowed or refused one by one, and every transfer is in the audit log with path and size. A subsystem other than SFTP is refused.
  • A command run without a terminal (ssh -J … host uptime) is recorded with its output; binary output is marked and left out.
  • Recorded RDP keeps what the server sent and, when the session ends, the connector turns it into a video; the raw stream is removed once the console has the video. Windows and Apple apps both play. Quality is not reduced: the graphics pipeline (H.264 included) is negotiated as it would be directly.

Pinning the server's SSH host key

On a recorded SSH resource the connector keeps the server's host key the first time it signs in (shared with password rotation). A server that later shows a different key is refused, and the audit log says The server's SSH host key changed. If the server was rebuilt or its key replaced on purpose, edit the resource: under Native SSH client you see Server's SSH host key with the fingerprint; press Forget, confirm with Sure? Forget it, and the next connection keeps the key it shows.

Watching live and taking control

Recorded native sessions appear under Live sessions as RDP · NATIVE or SSH · NATIVE, with Watch live in the same viewer as a browser session. Direct sessions are listed too (and can be ended) but cannot be watched.

  • SSH: the admin sees the terminal as the user sees it (a late joiner gets the screen rebuilt, a full-screen program such as vim drawn on top), can send a message or end the session. The user sees a line in their terminal that an admin is watching (at most once a minute), and when control is taken and returned; an admin's message arrives the same way. While a full-screen program runs these lines wait so the screen is not broken. Each is marked in the recording. No connector update is needed.
  • RDP: view only plus take control. The user is not told inside their Remote Desktop app (Captivo has nowhere to write there); the portal and the .rdp download say sessions may be watched or taken over. The connector decodes at most 4 recorded sessions at once (RDP_LIVE_MAX on the connector, default 4, 0 turns watching off); later ones are recorded but cannot be watched. An ordinary desktop costs 1 to 2 percent of a core and about 180 MB of memory per watched session; a full-HD video costs most of a core.
  • Take control needs configure rights, one admin at a time. The user's input is paused (dropped, not queued) and the admin's goes instead; leaving the view gives control back. In RDP text is sent as Unicode and shortcuts as keys at their US positions (an xrdp server may not accept non-ASCII letters). The admin's typing is marked as theirs in the keystroke log.

When the grant ends or an admin presses end, the session closes. More in Recording and monitoring.

Ports, hostnames and the reverse proxy

WhatWhereNotes
RD Gatewayhttps://<console host>/remoteDesktopGateway/ (443)WebSocket upgrade; only the WebSocket transport. Same host as the console, so no new firewall rule for users.
SSH jump host<console host>:2222Users' network must allow outbound 2222. Self-hosted: SSH_PUBLIC_PORT changes the published port, SSH_PUBLIC_HOST the name in the command, SSH_ADDR=off turns it off.
To the serverFrom the connector: TCP 3389 / 22 (or the resource's port)Outbound from the connector only.
On Cloud both are already served on your workspace host (acme.cloud.captivo.io). On your own server the bundled Caddy routes /remoteDesktopGateway/ to the data plane. If you front the console with your own nginx or load balancer, send /remoteDesktopGateway and /remoteDesktopGateway/* to the data plane with WebSocket upgrade headers and a long read timeout, and publish TCP 2222 from the data plane container. The jump host's key lives in the data plane's /data volume: without that volume every deploy changes the key and users see a host key warning.

Sizing and self-hosted details are in Connectors.

What the audit log shows

  • Session opened / Session closed with own RDP app, own SSH app or own SSH app, recorded; the close row carries the duration and bytes (server to client, plus upload on SSH in the data plane log only).
  • Refusals show the check after the client, for example No grant for this resource · own SSH app, Outside the grant's hours, Network not on the IP allowlist, Port forwarding refused (recorded session) · own SSH app, SFTP upload refused (file transfer rule) · own SSH app, The server's SSH host key changed, Signing in to the server failed, The connector needs an update.
  • Native RDP sessions are stored under the RD Gateway request that carried them (RDG_OUT_DATA), not under an HTTP verb.

Common problems

SymptomCause and fix
No .rdp file / SSH button on My accessThe option is off, the resource is not RDP/SSH over a connector, the connector is too old (and recording is required), or the resource requires a moderator (RDP). Check the chips on the resource form.
The .rdp file opens but mstsc says the gateway refusedThe ticket is older than two minutes, or the grant is not active now. Download a new file. If it still fails, the reverse proxy is not passing /remoteDesktopGateway/ with WebSocket upgrades (the gateway answers 501 to anything else).
RDP: the gateway connects but the session fails at onceThe connector is older than 2.52.0 (2.39.0 for direct) and cannot carry the stream. Update it.
Recorded RDP: sign-in failsThe saved account is wrong (use a domain-qualified user name) or the domain has turned NTLM off entirely: the connector signs in with CredSSP and NTLMv2. Re-enter the secret on the resource.
Recorded RDP: the video is blackDownload a fresh .rdp file: it sets bitmapcachepersistenable:i:0. A file or saved shortcut from before that setting can paint from the app's own disk cache, which the recording never sees. Old recordings cannot be repaired.
SSH: "this SSH command has expired or was already replaced"The ticket is older than two minutes. Press SSH again (Get a new command).
SSH: "This is Captivo Access's SSH jump host. It has no shell"You ran ssh against the jump host instead of through it: use the full command with -J and the destination user@server.
SSH: REMOTE HOST IDENTIFICATION HAS CHANGEDThe jump host's key changed (a self-hosted data plane without its /data volume was rebuilt). On a recorded resource also check that the command carries -o HostKeyAlias=…; without it your client compares Captivo's key with the server's. Remove the stale line from known_hosts after confirming the fingerprint shown in the dialog.
SSH: connection to port 2222 times outA firewall on the user's side blocks outbound 2222 (hotel, guest Wi-Fi). Use the browser session there.
Recorded SSH refused: host key changedSee pinning above: confirm the change is intended, then Forget.
Recorded SSH: "the saved account must be entered again"The secret was sealed for another connector, address or user name. Edit the resource and enter the secret again.
VS Code Remote-SSH fails on a recorded resourceBy design: it needs port forwarding. Use direct mode for that resource or the browser terminal.

For the browser session see Remote desktop will not connect; rules that apply to both paths are in Policies.

For product-wide problems: The connector shows offline · The app does not open · Cannot sign in with a passkey

Was this article helpful?