Jump host
A jump host (also called a bastion host or gateway server) is an intermediate SSH server that you connect through to reach a final destination. Instead of connecting directly to your target machine, ZestSSH connects to the jump host first, then tunnels through that connection to the server you want to work on.
This is what you need when your target server is on a private network with no direct internet access. The jump host sits at the boundary: it is reachable from where you are and can also reach the private network.
In ZestSSH the setting is called Connect via. It needs Squeezed.
Equivalent SSH command: ssh -J jumpuser@jumphost targetuser@targetserver
When you need a jump host
Section titled “When you need a jump host”- Company networks. A single bastion server is exposed to the internet. Internal servers (databases, app servers, CI runners) are on a private network. You SSH into the bastion, then through it to the internal machine.
- Home labs. You have one public-facing server (a VPS, or a router forwarding a port). Behind it, several machines live on a private network. The VPS is your jump host.
- Cloud infrastructure. Sensitive instances often sit in private subnets, with a bastion host as the only SSH entry point.
- Several hops. Some networks require passing through two or more gateways, for example a DMZ host, then an internal gateway, then the target.
How it works
Section titled “How it works”When you connect to a host that has Connect via set:
- ZestSSH connects to the jump host with the jump host’s own saved settings (address, port, key).
- Through that connection, it opens a
direct-tcpipchannel to the target’s address and SSH port. - It does a second, separate SSH handshake inside that channel, signing in with the target’s own credentials, and checks the target’s host key.
- You get a terminal session on the target server. It looks and feels like a direct connection.
The session with the target is encrypted end to end: the jump host relays encrypted bytes but cannot read your session with the target.
ZestSSH keeps each jump host’s connection alive by itself, with a keep-alive every 10 seconds, whatever that host’s own keep-alive setting is.
Configuring in ZestSSH
Section titled “Configuring in ZestSSH”Step 1: Save the jump host as a host
Section titled “Step 1: Save the jump host as a host”A server must be saved as its own host before you can use it as a jump host.
- Add a new host: on a computer, New host on the Hosts page; on a phone, the Add new host button on the Hosts tab.
- Enter the jump host’s details:
- Nickname: something clear like “Bastion” or “Gateway”.
- Address: the jump host’s public host name or IP.
- Port: usually 22.
- Key: the SSH key or password for the jump host.
- Optionally test it (Test reachability or Test full connection), then save it.
Step 2: Point the target server at the jump host
Section titled “Step 2: Point the target server at the jump host”- Add a new host (or edit an existing one) for the target server.
- Find Connect via (optional): on a computer, in the editor’s Network section; on a phone, tap Advanced options, then look in the Network section.
- Pick the jump host you saved in Step 1. The list has Direct (no jump host) and all your other saved hosts; the host you are editing is never in it.
- Fill in the target’s details:
- Address: the target’s private IP or host name as the jump host sees it (for example
192.168.20.5). - Port: the target’s SSH port (usually 22).
- Key: the key or password for the target server. It can differ from the jump host’s.
- Address: the target’s private IP or host name as the jump host sees it (for example
- Optionally test it. From 4.3, Test reachability and Test full connection go through the jump host as a session does, signing in to each jump host on the way, also for a host not saved yet. Without Squeezed, Connect via is not used, and the test says it went directly.
- Save.
When you connect to the target, ZestSSH connects to the jump host first, then tunnels through to the target.
The info button beside Connect via (optional) opens a short explanation (“Connect via (jump host)”) of what it does, when to use it, and an example.
Connect via needs Squeezed
Section titled “Connect via needs Squeezed”On the Free plan, the editor shows Connect via (optional) with a lock, “Squeezed feature, upgrade to unlock”, and an Upgrade button.
If a host already has Connect via set (for example it came by sync from a device with Squeezed, or from an import), the Free plan connects to it directly instead, and says so once per host: “(host): Connect Via needs Squeezed. Connecting directly instead.” The same applies to a jump host that a network override sets.
Port forwarding itself (local, remote and SOCKS5) is free on every plan.
Chaining jump hosts
Section titled “Chaining jump hosts”ZestSSH supports chains of jump hosts. If Server C is only reachable from Server B, which is only reachable from Server A:
- Save Server A with Connect via set to Direct.
- Save Server B with Connect via set to Server A.
- Save Server C with Connect via set to Server B.
When you connect to Server C, ZestSSH connects to A, tunnels through A to B, then through B to C. Each hop adds some latency.
Example:
Server A: bastion.example.com (Direct)Server B: 192.168.20.5 (Connect via = Server A)Server C: 192.168.30.20 (Connect via = Server B)Connecting to Server C goes through A and B by itself.
A network can also give a host a different jump chain while you are on that network. That chain is used exactly as written.
Jump host + port forwarding
Section titled “Jump host + port forwarding”Jump hosts and port forwarding work together. A forward on a host that uses a jump host runs over the session to the final target, not the jump host.
Example: Proxmox behind two hops
Section titled “Example: Proxmox behind two hops”Your network:
Internet --> bastion.example.com --> 192.168.20.5 (target SSH server) | 192.168.20.10 (Proxmox, port 8006)Configuration:
- Bastion: saved with Connect via set to Direct.
- Target server (
192.168.20.5): saved with Connect via set to Bastion. - On the target server, add a Local port forward:
- Source port:
8006 - Destination host:
192.168.20.10 - Destination port:
8006
- Source port:
When you connect and start the forward, the path is:
Your browser --> localhost:8006 (your device) | SSH connection to bastion | SSH connection to 192.168.20.5 (inside the first) | direct-tcpip channel to 192.168.20.10:8006You open https://localhost:8006 in your browser and see Proxmox, two hops and a private network away.
Example: SOCKS5 through a jump host
Section titled “Example: SOCKS5 through a jump host”To browse a whole private network behind a jump host, save any server on that network with Connect via pointing at the jump host, then add a SOCKS5 forward on it. Your browser’s SOCKS5 proxy then routes traffic through both SSH hops into the private network.
Troubleshooting
Section titled “Troubleshooting”When a chain fails, ZestSSH names the jump host and what went wrong, for example:
- “The jump host (name) could not be reached.” followed by why.
- “Signing in to the jump host (name) did not work.” followed by why.
- “The jump host (name) does not pass connections on to (next): forwarding is turned off there, or not allowed for this account or key.”
- “The jump host (name) could not reach (next) itself.” with what it said.
- “The jump host (name) ended the connection.” with its reason.
- “The connection to the jump host (name) ended while the host behind it was being connected to.”
The target cannot be reached through the jump host
Section titled “The target cannot be reached through the jump host”- Check the target’s address from the jump host’s point of view. If the target is at
192.168.20.5, make sure the jump host can reach192.168.20.5on port 22: connect to the jump host directly and runssh 192.168.20.5from its terminal. - Check that the target’s SSH server is running and listening on the configured port.
- If the jump host says it does not pass connections on, TCP forwarding is turned off for your account on the jump host’s SSH server.
Sign-in fails on the target
Section titled “Sign-in fails on the target”- The key of the target host must be valid for the target server, not the jump host. These are separate sign-ins.
- If the target expects a specific user name, make sure the target’s key has it (the user name is saved with the key).
The jump host’s connection drops
Section titled “The jump host’s connection drops”- If the jump host disconnects, every session and port forward through it ends too.
- On iOS, putting ZestSSH in the background may drop the jump host’s connection, and with it everything behind it.
Slow through several hops
Section titled “Slow through several hops”- Each hop adds that link’s latency. Two hops of 50 ms each make roughly 100 ms for the final session.
A deleted jump host
Section titled “A deleted jump host”If the jump host a host connects through is no longer saved, ZestSSH does not connect directly instead. It says “The jump host that (host) is set to connect through is no longer there.” Open the host and pick another jump host under Connect via (optional), or Direct.
Jump hosts in a circle
Section titled “Jump hosts in a circle”The Connect via list never offers the host you are editing. If a longer chain leads back to itself (Server A via Server B, and Server B via Server A), ZestSSH finds it before dialling and says “The jump hosts of (host) go in a circle: (hop) comes up a second time on the way. Change Connect Via of one of them.”
A host in a team vault whose sessions are watched cannot be a jump host: what goes through it could not be watched. See Session sharing and moderation.
- Name your jump hosts clearly. Names like “Bastion” or “VPS gateway” make them easy to spot in the Connect via list.
- Start forwards automatically on the target. A forward on the target set to start automatically starts as soon as the whole chain is connected.
- Test each hop on its own first. Before building a chain, check that you can connect to each server where possible, to confirm credentials and reachability.
Related
Section titled “Related”- Port forwarding overview: the three forwarding types.
- Local forwards: forward a port through a jump host chain.
- SOCKS5 proxy: route traffic through a jump host.