A jump host is a server you connect through to reach another one, like OpenSSH's ProxyJump. MorphGate opens the connection to the jump host first and reaches the target from there. For hosts you reach through a command instead, see A command on this computer below.
Set a jump host
- Save the jump host itself as a host, with its own user and sign-in method.
- Open the target host's editor.
- Under Connect via, pick Jump host: and the host to go through.
- Save.
A group can set Connect via for all its hosts. A host in that group shows From the group: jump host and the jump host's name as its first choice, and uses it unless you pick another.
A jump host can't ask you for a password while connecting. Give it a saved password, a key or an SSH agent; otherwise MorphGate says the jump host has no saved password.
Chains
A jump host can have its own jump host, so you can chain hops. MorphGate follows the chain from the first hop to the target, through up to eight jump hosts, and refuses loops.
Every hop is a separate SSH connection with its own sign-in. Each hop's host key is checked before the next hop opens: against the key pinned for it, through a host CA you trust, or against the keys its feed lists. A first-time hop asks you to trust its key, like any host. See SSH keys and host keys.
Through the jump host by a command
Some jump hosts don't forward connections but run a command that hands one on, such as nc %h %p or a platform's own jump command. Once a jump host is set, enter that command under Through the jump host by a command (optional). The jump host runs it, and its input and output carry the connection, like OpenSSH's ProxyCommand ssh jump-host …. %h, %p and %r are this host's address, port and user. If the connection fails, what the command printed is shown as the reason.
A command on this computer (proxy command)
Some hosts are reached through a command run on your own computer: AWS Session Manager, an EC2 Instance Connect Endpoint, Google's IAP tunnel, or nc through a SOCKS proxy. Under Connect via, pick A command on this computer (proxy command) and enter the Proxy command. Its input and output are the connection, like OpenSSH's ProxyCommand. %h, %p and %r are this host's address, port and user.
- A host with a proxy command has no jump host or VPN, of its own or from its group. It can be the jump host for other hosts.
- Because vaults sync, and a team's vault is written by others, a proxy command runs on your computer only once you've allowed it there. A command you type and save in the editor is allowed, and so is one imported from OpenSSH's configuration on this computer (see Import hosts). One that came with the vault waits: the host's editor shows it with Allow on this device. Read it before you choose that. A changed command asks again.
- A host name or user given to the command through
%hor%rmust be a plain word; one with spaces or shell characters is refused. - If the connection through the command fails, MorphGate shows what the command printed, for example that a plugin it needs isn't installed.
Hosts a cloud source keeps that are reached through their cloud (Session Manager, an Instance Connect Endpoint, IAP) use a command MorphGate builds itself, so they need no allowing. See Cloud sources.
Jump hosts and VPNs
A VPN carries the first hop. When a host uses a jump host, its own VPN setting is replaced by the jump host's: the editor shows From the jump host: and that VPN. The target is then reached through the jump host, not through a VPN of its own. With a proxy command, the editor shows None: the proxy command connects it.
Seeing the route
- The sidebar shows via and the jump host's label under a host's address.
- On the Hosts page, each host's line says via its jump host, or through a proxy command (not allowed on this device while it waits for you).
- The host editor's Connection path lists this device, the VPN, each jump host and the target.
- Above a session, the route bar shows the same chain while you work. See Terminal sessions.
Limits
- A jump host must be in the same vault as the host that uses it.
- A chain can have up to eight jump hosts.
- Tunnels and SFTP to a host use its whole route, jump hosts, VPN and proxy command included.