Hosts from your SSH config
Start from the hosts in your ~/.ssh/config: copy one into a self-contained server, or add several at once as aliases, jump hosts included.
In short
- Picking a host from ~/.ssh/config copies its address, username and port into HiveBoard; the new server no longer depends on that file.
- Add several at once adds the ticked hosts as aliases, reached exactly as
ssh <name>reaches them on this computer, jump hosts included. - An alias works only on a computer with the same ~/.ssh setup; Make it self-contained on its Connection tab copies what it needs into HiveBoard.
If you already reach your clusters with ssh ember from a terminal, HiveBoard can start from
that. It reads the hosts in ~/.ssh/config on this computer — a local file; no server is
contacted to list them — and offers them in two places: on the first-run page under Found
on this computer, and on the first step of Add a server under Or start from your SSH
config.
There are two ways to use those hosts, and they give two different kinds of server: picking one host makes a self-contained server, and Add several at once makes aliases.
Pick one host
Picking a host copies its address, username and port into HiveBoard. The server you end up
with is self-contained: it keeps everything in HiveBoard’s data folder and no longer depends on
~/.ssh/config. In Add a server, the fields are filled in and Check server runs at
once; from the first-run page, Add a server opens with the fields filled in. From there it is
the usual four steps.
- If the key file the host’s entry names (
IdentityFile) is already in the keychain, that key is chosen for you. - A host you have already added is marked added as and the name it has here; picking it again only says so.
- A host whose entry goes through a
ProxyJumporProxyCommandis marked jump host. Picking it copies its address, not its route: add it with Add several at once, which keeps the route, or add the jump server first and choose it under Only reachable through another server? (see Jump servers). - Entries written with a wildcard, such as
Host *, are not listed.
Add several at once
- On the first step of Add a server, press Add several at once — or choose Add several from ~/.ssh/config… in the list’s More menu, or Add several at once on the first-run page.
- Tick the hosts you want.
- Press Add 3 servers (the button counts what you ticked).
A page then lists what was added and what was skipped, and why. These servers are aliases:
added exactly as ssh <name> reaches them on this computer, jump hosts included. Each is named
after its host and signs in with a key — the one its entry names, or else the keys ssh would
try by itself (id_ed25519, id_rsa, id_ecdsa). If one signs in with a password or a code
instead, choose that on its Connection tab.
Alias or self-contained
| Kind | In config.yaml | From another computer? |
|---|---|---|
| Alias | ssh_host: ember | Only with the same ~/.ssh |
| Self-contained | hostname, user, port, a keychain key | Yes |
An alias takes from ~/.ssh/config only where the server is (HostName, Port, User) and
which key to offer (IdentityFile). From there on it is dialled like any other server: its
identity is checked and remembered, and a password or a
code goes through the sign-in sheet. A route in its entry is
followed too: the single-file app hands an alias it cannot reach directly to this computer’s
own ssh program.
You can tell which kind a server is at a glance: its header says Self-contained or
~/.ssh alias “ember”, and the foot of the list says how many servers still depend on this
computer’s ~/.ssh. Some things need a self-contained server: a key from HiveBoard’s keychain,
this computer’s SSH agent, Kerberos, and a jump
server chosen in HiveBoard.
Make it self-contained
- Open the alias in Connections and go to its Connection tab. It says Reached through this computer’s SSH setup.
- Press Make it self-contained. The address, username and port are filled in from
~/.ssh/config. - If the server signs in with a key that is in
~/.sshbut not yet in the keychain, HiveBoard asks Copy Ember’s key into HiveBoard? Press Copy key into keychain; the original file is left untouched. - Review the fields and press Save changes.
This computer’s SSH keys
A self-contained server that signs in with a key can still use the keys in ~/.ssh: on its
Connection tab, the Key list starts with This computer’s SSH keys (~/.ssh). HiveBoard
then offers that server the keys ssh would try by itself — id_ed25519, id_rsa,
id_ecdsa. Only a key server with this choice is shown them; a password, Kerberos or agent
server never is.
Those keys stay on this computer, so the server will not work from another one; the tab warns you of that. To make it travel, import the key under Keys on this computer in the keychain and choose it in the Key list.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
You pick nimbus under Or start from your SSH config. What does HiveBoard keep?
- Its address, username and port, as a self-contained server
- A pointer to the nimbus entry in ~/.ssh/config
- A copy of your whole ~/.ssh folder
Show the answer
Its address, username and port, as a self-contained server Picking one host copies its address and username into HiveBoard, so the result no longer depends on ~/.ssh/config.
-
You carry HiveBoard's data folder to another computer. Which servers work there unchanged?
- Self-contained servers
- Aliases from ~/.ssh/config
- Both kinds, always
Show the answer
Self-contained servers An alias is resolved through ~/.ssh/config, so it works only where that computer has the same ~/.ssh setup.
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.