Skip to content

Remote Desktop Settings

An application of a portal can open a remote desktop (RDP), a terminal (SSH) or a remote screen (VNC) on a machine behind the gateway asset, right in the browser, and a terminal on a Telnet device or in a Kubernetes pod. The person needs nothing but a browser: no XTNA-agent, no RDP, SSH or VNC program and no network path to the machine. The gateway asset connects to the machine and streams the screen to the browser.

In short

This page lists what the gateway asset needs and what each setting of a remote desktop application does: sign-in, target identity, SSH certificates, clipboard and files. Steps are in Publish a remote desktop, SSH terminal and VNC screen and Telnet and Kubernetes terminals; sessions, limits and recordings are in Sessions and recording.

Remote desktop in the browser Remote desktop in the browser

Such an application is a remote desktop application. Its Upstream is rdp://host, ssh://host, vnc://host, telnet://host or kubernetes://api-server instead of a web address, and everything else about applications applies unchanged: the trust level, the policy that grants the portal, Allowed user groups, Allowed networks, the session lifetime and Sign Out Everyone.

Requirements

  • The gateway asset runs the XTNA-agent on Linux, or is the asset container image, with a current agent version. An older agent refuses the portal and the console shows it as not served.
  • guacd on the gateway asset: the program that speaks RDP, SSH, VNC, Telnet and the Kubernetes API for the browser. You install nothing for it: the agent downloads it (about 12 MB from dl.xplicittrust.com, amd64 and arm64) when the first remote desktop application reaches it, on a Linux asset and with the asset container image alike, and keeps it up to date with the agent. Without internet access, see the options for a Linux asset and the asset container image. guacd runs as an account of its own, guacd, which the agent's deb and rpm packages and the container image bring; a tar.gz install needs it created by hand.
  • iptables or nftables on the gateway asset. guacd accepts connections from the gateway asset itself without a sign-in, so the agent closes its port to every other local account before it starts guacd, with iptables or, where iptables is not installed, with nftables. Without either, guacd is not started and the gateway asset serves no remote desktop applications (Gateway status says so). The asset container image needs NET_ADMIN for it, which it needs for the tunnel anyway.
  • The target machine is reachable from the gateway asset on its RDP port (3389), SSH port (22), VNC port (5900) or Telnet port (23). It needs no agent and no public address. For a Kubernetes application the gateway asset reaches the cluster's API server (6443), not the pod.
  • A VNC application needs an agent version that supports VNC on the gateway asset. Saving one for a gateway asset with an older agent is refused; update the agent first. RDP and SSH applications are not affected. The same holds for Telnet and Kubernetes applications, which came later still.
  • An RDP target must offer TLS or NLA, which every current Windows version does. A target that only offers the old RDP Security Layer is refused, because its identity cannot be verified. The portal's detail page then reads Refused by the RDP server: the server allows only standard RDP security, without TLS (code 2) under Remote desktop targets, with what to change on the server: set the RDP security layer to Negotiate or SSL (group policy Require use of specific security layer for remote (RDP) connections), or allow Network Level Authentication. The person sees "The remote desktop ... does not offer a connection the gateway can verify. An administrator must change its security settings." In Choose the upstream, Network Discovery marks such a server No TLS.

guacd: installing, updating and licenses

guacd does not use the distribution's libraries, so any Linux distribution works. While the agent downloads it, the portal is already served and its remote desktop sessions show The gateway is still installing the remote desktop service. Try again in a minute. The console shows the state on the portal's detail page, under Gateway status.

guacd is updated with the agent: an agent update that brings a newer guacd downloads it while the old one keeps serving, and switches once no remote desktop session is open. A guacd installed by hand is never replaced; the console shows it as installed by hand.

guacd is guacamole-server and FreeRDP, built from their release sources, with the Alpine Linux libraries they need, among them LibVNCServer's client library for VNC, libtelnet for Telnet and libwebsockets for Kubernetes. Its license texts and notices are in /opt/xtna-guacd/share/licenses/; THIRD-PARTY.txt there names the archive with the complete corresponding source, on dl.xplicittrust.com. Its SBOM is published next to it, for example https://dl.xplicittrust.com/xtna-guacd_amd64.tar.gz.cyclonedx.json.

Application settings

On the portal's Applications tab, choose Add application:

Setting Value
Name What people see for the desktop, for example Finance PC, on its page and in the list of applications. At most 64 characters; without a name, the pages show the target
Path prefix Where the desktop opens, for example /desktop
Upstream rdp://192.168.1.30, ssh://192.168.1.31, vnc://192.168.1.32 or telnet://192.168.1.40, with :port when the target does not use the default port; no path. A VNC display number is a port: display :1 is vnc://host:5901. kubernetes://10.0.0.10 is the cluster's API server; the pod is in the settings
Trust level identity or tunnel. public is not allowed: a remote desktop always needs someone the policy grants

The application then shows Remote desktop (RDP), Terminal (SSH), Remote screen (VNC) or Terminal (Telnet) settings; those of Terminal (Kubernetes) are under Kubernetes targets:

  • Username, Domain (RDP) and Password: when the application stores them, the gateway asset signs in by itself and the person never sees the credentials. Leave them empty to have the person type their own account. Most VNC servers ask for a password only: store the password alone, and a username only for a server that asks for one, such as Apple's Screen Sharing. A Telnet application may store the username, the password or both.
  • Login prompt, Password prompt (Telnet): what the target prints before it reads the username and the password; see Telnet targets.
  • Private key and Key passphrase (SSH): sign in with a key instead of a password. The key is checked when you save, so a wrong passphrase is reported at once and not at the first session.
  • Sign in with a short-lived certificate (SSH): store no password and no key at all; the gateway asset signs a certificate for the Username for every session. See SSH certificates.
  • Certificate fingerprints (RDP) or Host keys (SSH): pin the target's identity; see Target identity. A VNC or Telnet server has no identity to pin.
  • Default keyboard layout (RDP): the layout a session starts with. Each person can change it for their own sessions in the session's Keyboard layout menu, and the browser keeps the choice; see Using a portal. Without a default, a session follows the browser's language (a German browser types de-de-qwertz), and US English when guacd has no layout for that language.
  • Copy from the session, Paste into the session: the clipboard, in each direction.
  • File upload, File download (RDP and SSH): for RDP, a drive named XplicitTrust in the session's file explorer, which exists for that session only; for SSH, transfers over SFTP into the account's home directory. VNC, Telnet and Kubernetes have no file transfer.
  • Idle timeout (minutes): a session without keyboard, mouse or touch input for this long is ended, 30 minutes by default.
  • Record sessions: the gateway asset records every session of the application, without keystrokes; see Session recording.

The clipboard and file switches, Allowed networks and the idle timeout are under Advanced.

Remote desktop (RDP) settings of an application Remote desktop (RDP) settings of an application Advanced settings of a remote desktop application Advanced settings of a remote desktop application

Stored passwords and keys are never shown again. XplicitTrust stores them encrypted for the gateway asset, which alone can decrypt them and keeps them in memory only. To change the passphrase of a stored private key, enter the key again with it. When you edit the application later, leave the fields empty to keep what is stored. If you change the Upstream or the Gateway Asset, or pin a key the gateway asset has not seen, the stored credentials are removed unless you enter them again: a typo in the target must not hand the credentials to another machine.

People open the desktop at https://<hostname><prefix>/, for example https://portal.example.com/desktop/. The screen follows the size of the browser window. Without stored credentials, the page asks for whatever the target needs: the username, then the password. What the page shows at each step, and how a session ends, is in Using a Portal.

Target identity

The gateway asset only connects to a target whose identity it trusts: the SSH host key, or the certificate of an RDP server.

  • Pinned: with Host keys or Certificate fingerprints filled in, the target must present one of them. Anything else is refused.
  • Trusted on first use: with the fields empty, the gateway asset trusts what the target presents at the first session and refuses a change later.

The portal's detail page lists the remote desktop targets with what the gateway asset learned: the fingerprint, and Pinned, Trusted on first use or Refused: the target presented a different key. Before the first session, the gateway asset's connection test already shows what the target presents, marked not trusted yet. Pin copies a learned or presented key into the application.

Remote desktop targets on the detail page of a portal Remote desktop targets on the detail page of a portal

Compare a learned key with the target's own before you pin it, for example with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub on an SSH target, or the certificate in the target's Remote Desktop settings. When a target is reinstalled and its key really changed, the sessions stay refused until you pin the new key.

VNC targets

A VNC server has no identity the gateway asset could verify: no certificate and no host key. Most VNC servers do not encrypt the session either, and the VNC password protects the sign-in only. Whoever controls the network between the gateway asset and the target can read the session or pose as the target, as with a plain http:// upstream. Put the gateway asset in the same network segment as the VNC target, without other networks in between, or prefer RDP or SSH where the machine offers them.

The gateway asset still checks before each session that the target answers as a VNC server. The portal's detail page shows which security types the target offers, for example vnc (a VNC password) or ard (Apple's Screen Sharing), and warns when it offers none: such a server lets anyone in who reaches it, without a password. Turn that off on the target.

The settings of a VNC application say the same: they have no fields to pin an identity, and show the warning instead.

Remote screen (VNC) settings of an application Remote screen (VNC) settings of an application

Telnet targets

Telnet has no encryption and no identity: no certificate, no host key. The whole session, the password included, crosses the network between the gateway asset and the target in clear text, and whoever controls that network can read it or pose as the target. Use a Telnet application for what speaks nothing else, such as a switch, a console server or an old controller, and put the gateway asset in the same network segment, without other networks in between. What the portal adds is everything in front of that last hop: HTTPS to the browser, the sign-in at your identity provider, the policy and the recording.

A Telnet target has no sign-in of its own protocol: it prints a prompt and reads what is typed. So the page asks for no account.

  • Without a stored account, the person signs in at the target's prompt in the terminal.
  • With Username, Password or both stored, the gateway asset types each when the target prints its prompt, and the person never sees them. Some devices ask for a password alone: store only that.
  • The gateway asset recognizes the prompts login: and password:, with a small or a capital first letter. For a target that asks otherwise, set Login prompt and Password prompt to what it prints, for example Username: or PIN:. Each is a POSIX extended regular expression of at most 256 characters, so (User|Username): works too; a pattern that is not valid is refused when you save.

The gateway asset checks before each session that the target takes a connection on the port. It cannot tell a Telnet server from anything else that listens there, so the portal's detail page only says Reachable.

Terminal (Telnet) settings of an application Terminal (Telnet) settings of an application

Kubernetes targets

A Kubernetes application opens a terminal in one container of one pod. Its upstream is the cluster's API server, and the gateway asset needs a path to that only, not to the pod network. The Terminal (Kubernetes) settings are:

Terminal (Kubernetes) settings of an application Terminal (Kubernetes) settings of an application

Setting Value
Pod The pod's name. Required
Namespace The pod's namespace; default when empty
Container A container of the pod; its first container when empty
Command What to run in the container, for example /bin/sh or /bin/bash -l (at most 256 characters). Empty: the session attaches to the container's main process, which must have been started with a terminal
Cluster CA certificate The CA certificate that issued the API server's certificate, as PEM. Required, exactly one certificate
Client certificate The certificate the gateway asset signs in to the API server with, as PEM. Required
Client key The key of the client certificate, as PEM and without a passphrase. Stored encrypted for the gateway asset and never shown again
  • Sign-in: the client certificate is the whole sign-in, and the same for everyone who opens the application. The page asks for no account. The cluster's audit log names the certificate's user for every session; who the person was is in the session's event. Tokens are not supported, so a cluster that only takes tokens, such as the short-lived ones of a cloud provider's sign-in plugin, cannot be used.
  • Identity: the gateway asset verifies the API server's certificate against the Cluster CA certificate and nothing else, and checks that it carries the name or address of the upstream. There is no option to skip the check, and nothing is trusted on first use. When the API server's certificate comes from an intermediate CA, enter the certificate that signed it.
  • Permissions: give the certificate's user get and create on pods/exec of the one pod, or on pods/attach for an application without a command, and nothing more. Prepare the cluster has the role.
  • Changing the certificate: the stored key is kept while the Client certificate stays the same. A new certificate needs its key entered again. Client certificates expire: replace the certificate before then.
  • The pod's name is fixed. That fits pods that keep their name, such as those of a StatefulSet or a pod started for maintenance, and not the pods of a Deployment, whose names change with every rollout.

Before each session, and for the connection test on the portal's detail page, the gateway asset connects to the API server and asks it whether the session is allowed. The detail page then says Reachable, and the cluster accepts the client certificate, or which of the three it was: the API server's certificate does not verify, the cluster does not accept the client certificate, or it does not allow its user to open a terminal in the pod.

People see the pod, as namespace/pod, in the list of applications and on the session page; events name the API server as the target.

SSH certificates

A stored password or key works for as long as nobody changes it. With Sign in with a short-lived certificate, an SSH application stores neither. The gateway asset has a certificate authority of its own, and for every session it makes a new key, signs a certificate for it and forgets both when the session is over:

  • The certificate is for the application's Username only, and valid for a few minutes around the start of the session, long enough to sign in.
  • It allows a terminal and nothing else: no forwarding of ports, of an SSH agent or of X11.
  • It names the person. Its key ID is xplicittrust:<user or device>:<session ID>, and the target's sshd writes it to its log when it accepts the certificate, for example Accepted publickey for svc … ID xplicittrust:jdoe@example.com:…. The session's events carry the same ID as ssh_certificate_id, so even a shared account on the target tells who signed in.

To set it up, choose the gateway asset, enter the Username, and switch on Sign in with a short-lived certificate. The settings then show the gateway asset's certificate authority, one line with a copy button. On the target, put that line into a file, for example /etc/ssh/xt_user_ca.pub, name the file in /etc/ssh/sshd_config and reload sshd:

TrustedUserCAKeys /etc/ssh/xt_user_ca.pub

Nothing else is installed on the target, and the account needs no authorized_keys entry. A file can hold the lines of several gateway assets, one per line.

  • One authority per gateway asset. A target that trusts it accepts every account the gateway asset signs a certificate for. To allow only some accounts, limit it on the target, with AuthorizedPrincipalsFile or a Match block in sshd_config.
  • Its private key never leaves the gateway asset. It is in /etc/XplicitTrust/config/webproxy-ssh-ca.key, readable by root only, and nobody else has a copy, XplicitTrust neither. Whoever reads that file can sign in to every target that trusts the authority: protect it like the asset's own configuration. A gateway asset whose configuration is reset makes a new authority, and the targets have to trust the new line.
  • No fallback. A target that does not trust the authority refuses the sign-in, and the session ends with The connection failed.
  • Switching it on removes a stored password and key when you save. It needs a current agent on the gateway asset; with an older one, the settings say that the gateway asset has not reported a certificate authority.

The target's identity is still checked by its host key, as in Target identity.

Clipboard and files

  • Copy puts text the session copies onto the browser's clipboard. On VNC, the clipboard carries Latin-1 text, as VNC defines it: characters outside it, such as emoji or Asian scripts, do not arrive.
  • Paste sends the browser's clipboard into the session. The browser asks for permission the first time. The page reads the clipboard whenever the tab gets the focus, so whatever is on the clipboard reaches the session each time the person returns to the tab. Turn Paste off where that matters.
  • Upload: the page's upload button, or drag and drop onto the session.
  • Download: for RDP, a file put into the Download folder of the XplicitTrust drive is downloaded right away; for SSH, run guacctl --download <file> in the terminal. Anyone in the session can start a download; turn File download off where that matters.

Not supported

  • File transfer on VNC applications, and VNC reverse connections or repeaters.
  • File transfer on Telnet and Kubernetes applications. For Kubernetes also: signing in with a token, choosing the pod by a label, and port forwarding.
  • Pasting large amounts of text into a Kubernetes terminal. Text beyond a few kilobytes at once can arrive with parts missing; typing and ordinary pastes are not affected.
  • Several people working in one session. An administrator can watch a running session, read-only.
  • Personal stored credentials for each user: an application stores one account.
  • Windows, macOS and OpenWrt gateway assets.

See also