Jump servers
Reach a cluster that only answers from inside a network through another server you have added, as ssh -J does, with nothing installed on the way.
In short
- A self-contained server can connect through another server you have added — the same as
ssh -J. - HiveBoard signs in to the jump server first, with that server's own sign-in, key and trusted host key, and opens the connection inside it; nothing is installed and no port is opened on your computer.
- Chains are allowed and circles refused; a jump server that waits for you must be signed in first, and one set aside is never used.
Some clusters answer only from inside a campus or institute network: from outside, you first
log in to a gateway and go on from there. HiveBoard can do the same. A server can be set to
connect through another server you have already added — what ssh -J does. HiveBoard signs in
to that jump server first and opens the connection onward from inside it.
In the examples on this page, the cluster Quartz (quartz.example.edu) can only be reached
from inside Ember’s network, and Ember (ember.example.edu) is already in HiveBoard.
Choosing a jump server when you add one
- In Add a server, type Quartz’s address, your username and the port.
- Open Only reachable through another server? under the fields.
- In Connect, choose Through Ember — zoe@ember.example.edu.
- Press Check server.
The check, a key install and the connection test all go through Ember, and So far shows the
route under Server. The fold-out appears once you have at least one self-contained server —
one added with its address, not as an alias from ~/.ssh/config — because only those can be
chosen as a jump server. A server that is set aside is still listed,
marked (not in use) — but nothing can go through it until it is back in use.
Changing it later
On the server’s Connection tab, the Address card has a Connect list (for servers reachable only from inside a network): Directly, or Through one of your servers. Choose, then press Save changes. The list leaves out the servers that already connect through this one.
Only a self-contained server has this list. An alias from ~/.ssh/config follows the route in
its own entry instead (see Hosts from your SSH config).
The route then shows wherever the server does: a chip in its header reads
this computer → Ember → Quartz, the Setup card on its Overview has a Route line,
and the All servers table marks it through Ember. On Ember’s own page, the same line says
that Quartz connects through it. Copy SSH command in the server’s Actions menu gives the
equivalent ssh -J command.
In config.yaml it is one key, jump:, naming the other server:
- name: quartz
hostname: quartz.example.edu
user: zoe
jump: ember
What happens on the way
- HiveBoard opens Quartz’s connection as a channel inside Ember’s own SSH connection, with Ember’s sign-in, Ember’s key and Ember’s trusted host key.
- Nothing is installed on Ember, and no port is opened on your computer.
- Quartz’s own identity is checked as any server’s is.
- Chains are allowed: Ember may itself go through another server, and the header chip shows every hop. A circle is refused (Those jump servers go round in a circle.), and a server cannot go through itself.
When the jump server needs you
A server that asks for a password, a one-time code, a locked key’s passphrase, a touch on a security key or a Kerberos ticket never connects by itself. If Ember is such a server, nothing can go through it until you have signed in to Ember: Quartz reports sign in to the jump server first. Sign in to Ember from its chip or its page (see the sign-in sheet), and Quartz can connect through it.
Set aside, removed, exported
- A jump server that is set aside is never contacted on another server’s behalf. Quartz’s Connection tab then says that Ember is set aside and that Quartz can’t connect until it is back in use.
- A server that others connect through cannot be removed. HiveBoard says which servers use it: change their Connect first (Connection → Connect), then remove it. When you remove several servers at once, those that go through another are removed first.
- An export keeps the link, and an import points it at the jump server’s name on the computer that imports it.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
What does HiveBoard install on a jump server?
- Nothing — it opens a channel inside its SSH connection
- A small relay program in your home folder there
- A forwarded port on your own computer
Show the answer
Nothing — it opens a channel inside its SSH connection The connection runs as a channel inside the jump server's own SSH connection, as ssh -J does: nothing is installed and no port is opened on this computer.
-
Ember signs in with a password and a code, and Quartz is set to go through Ember. When can Quartz connect?
- Once you have signed in to Ember
- At any time, with Ember's saved password
- Never — a jump server cannot ask for a code
Show the answer
Once you have signed in to Ember A jump server that waits for a person never connects by itself, so it must be signed in before anything can go through it.
Try it in the app
On your own computer, with HiveBoard open. Tick them off as you go.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.