RD Gateway
A Remote Desktop Gateway (RD Gateway) is a Windows Server role that a company puts at the edge of its network. It takes Remote Desktop connections over HTTPS, usually on port 443, checks who is asking, and passes each one on to a PC inside the network. An RDP host in ZestSSH can go through one, on Windows, macOS, Linux, Android and iOS. New in ZestSSH 4.0.
If one of your SSH hosts can reach the PC, you do not need a gateway: choose that SSH host under Reach through instead, and the connection travels inside SSH.
Set it up
Section titled “Set it up”- Add an RDP host (New host, then RDP), or open the editor of one you have.
- Under Reach through, choose An RD Gateway. The gateway’s fields appear under it.
- Gateway address: the gateway’s name, such as
rdg.example.com. Port: 443 unless the gateway uses another. - Gateway sign-in: The same as the PC’s, or one of your keys (see The gateway’s sign-in).
- Address and port: the PC as the gateway knows it, often its name inside the company’s network (
pc-17.corp.example.com) rather than an address you could reach yourself, and 3389. - Key: the PC’s account, its user name and password. With none, they are asked for when the screen opens. For a domain account, write the user name as
DOMAIN\useroruser@domain. - Choose Save, then connect to the host as to any other.
The editor’s note under the fields says: “The gateway is told which PC this connects to and carries the connection without reading it (the PC’s own TLS is inside). Signing in the same as the PC gives the gateway the PC’s account and password; a key of its own keeps them apart. Its certificate is asked about once, apart from the PC’s.”
Test the screen is greyed for a host that goes through a gateway. Connect to try it: each refusal says why (see When it does not open).
A host goes through one thing: an SSH host, an RD Gateway, or nothing (Directly). A gateway reached through an SSH host is not offered.
The gateway’s sign-in
Section titled “The gateway’s sign-in”The gateway checks an account before it passes anything on to the PC.
- The same as the PC’s (the default): the gateway signs in with the PC’s account, from the host’s key, or the one you type when the screen opens. It is needed even where the host has Sign in without NLA on: the password then goes to the gateway alone, and the PC shows its own sign-in screen. If the gateway refuses a password you typed, it is asked for again, at most three times in all, so ZestSSH does not lock the account; one saved with the key stops with ZS-1822.
- A key of its own: the gateway signs in with that key’s user name and password, and the PC with the host’s key. Nothing is asked for: a key with no user name or no password, or one the gateway refuses, stops with ZS-1822. Use it where the gateway takes another account than the PC, or to keep the PC’s password from the gateway.
ZestSSH signs in to a gateway with NTLM (a user name and password), also where the gateway offers Negotiate. The sign-in is bound to the gateway’s TLS connection (channel binding, what Windows calls Extended Protection, which a gateway may insist on), so a sign-in taken from that connection would not be accepted on another.
Two certificates
Section titled “Two certificates”A session through a gateway runs two TLS connections, one inside the other: to the gateway, and to the PC through it. Each certificate is asked about and kept on its own.
- The gateway’s. A certificate that an authority signed for the gateway’s name is taken with no question: an authority on Mozilla’s list on every platform, and on Windows also one in Windows’ own certificate store, such as a company’s. Any other is asked about as a new host key is, named “RD Gateway for” the host, with its SHA-256 fingerprint. Once you accept one there, it is the only one taken for that gateway’s address and port: a different certificate is asked about again, in red, even one an authority signed.
- The PC’s. Asked about the first time, as for any RDP host, and the question names the gateway. It is kept for the route through that gateway: the same PC reached directly, or through another gateway, is asked about on its own.
A Windows PC makes its own Remote Desktop certificate and replaces it from time to time; see The certificate question comes back.
What the gateway learns
Section titled “What the gateway learns”- The PC’s address and port, and the account it signs in (the PC’s, or the gateway key’s). With The same as the PC’s, the gateway receives the PC’s password through its sign-in too.
- The client name
zestssh. - Not what you do on the PC: the Remote Desktop connection, with the PC’s own TLS and Network Level Authentication, runs inside the gateway’s tunnel, which carries it without reading it.
The connection log names the gateway and which sign-in it used, never a password.
In a team
Section titled “In a team”- The gateway’s address, port and sign-in are part of the host’s settings: they sync, and a team’s members connect through the same gateway. A key of its own for the gateway is used by the vault’s rules, as the host’s key is.
- With the team rule Remote screens through SSH only, the editor offers no An RD Gateway, and a host that goes through one does not open (ZS-1821): a gateway is not an SSH host.
- In a vault with Ask again before revealing, the gateway’s address is part of where a password goes: a member who may change the host is asked to confirm before the vault’s password goes through a gateway it has not gone through on that device.
- A certificate a team pins applies to the PC. The gateway’s certificate is asked about on each device.
From a Remote Desktop file
Section titled “From a Remote Desktop file”A .rdp file set to use a gateway (Windows’ Remote Desktop Connection writes gatewayhostname) comes in with it: the host goes through that gateway and signs in to it with the PC’s account. A key of its own for the gateway can be chosen afterwards in the host’s editor. See Import from other apps.
What is not supported
Section titled “What is not supported”- A gateway that asks for another sign-in than NTLM (a smart card, Basic, its own cookie), one that shows a message to agree to before connecting, one that uses its older transport of two HTTP connections, and one that asks to sign in again during the session. Each stops with ZS-1825, and Copy details says which.
- A gateway that sends the connection elsewhere: the redirect is not followed (ZS-1826).
- Reaching the gateway through an SSH host.
ZestSSH never connects to the PC without its gateway: a host whose settings name a gateway this version cannot use is refused (ZS-1827), not opened directly.
When it does not open
Section titled “When it does not open”Each code is explained in full on Common errors.
| Code | What it means | What to do |
|---|---|---|
| ZS-1822 | The gateway did not take the account it was given: the PC’s, or the gateway’s own key. Nothing reached the PC. | Check the gateway’s sign-in under Reach through in the host’s settings: its key, or the PC’s key when it signs in the same. A domain account is DOMAIN\name or name@domain. |
| ZS-1823 | The gateway signed the account in, and its policies do not let it through to this PC (its connection or resource authorization policy). | Check that the PC’s address is the name the gateway knows it by. Whoever manages the gateway can add the account or the PC to its policies. |
| ZS-1824 | The gateway could not reach the PC: its name does not resolve where the gateway is, the PC is off, or nothing listens on its Remote Desktop port. | Check the PC’s address and port as the gateway sees the PC, and that the PC is on and allows Remote Desktop. |
| ZS-1825 | The gateway asks for something this version does not do: another sign-in, a message to agree to, its older transport, or a new sign-in during the session. | Copy details says which. Whoever manages the gateway may allow NTLM (password) sign-in or turn the message off. Where an SSH host can reach the PC, choose it under Reach through. |
| ZS-1826 | The gateway refused for a reason of its own, or the address has no RD Gateway (a web server without one, or a redirect, which is not followed). | Check the gateway’s address and port (usually 443). Whoever manages the gateway can look its code up in the gateway’s log. |
| ZS-1827 | The host goes through a gateway this version of ZestSSH cannot open: its settings came from a newer version, or name an SSH host too. It was not connected to without the gateway. | Update ZestSSH on this device, or choose an SSH host that can reach the PC under Reach through. |
The PC’s own refusals (a wrong password, a locked account) are the same as for any RDP host: see Remote Desktop (RDP).