Sign-in methods
The five ways HiveBoard signs in to a server — SSH key, Key + code, Password, Password + code, Kerberos — and which of them connect by themselves.
In short
- Five choices: SSH key, Key + code, Password, Password + code and Kerberos; a key can also be locked, or held by this computer's SSH agent.
- Only an SSH key that HiveBoard can use unattended — not locked, not in the SSH agent — connects, and reconnects, by itself.
- Every other method waits for you to sign in, then keeps the connection until it drops or you close HiveBoard.
- Nothing you type is stored; choose an SSH key whenever the server accepts keys.
A server lets you in with one of a few things: a key, a password, a one-time code, a Kerberos ticket — or a combination. HiveBoard offers five choices for that, and two more ways a key can behave. The choice decides one important thing: whether HiveBoard can connect by itself, or waits for you.
You choose while adding a server, where one choice is marked recommended, and you can change it later on the server’s Connection tab: pick another, then Save changes.
The five choices
| Choice | The server wants | Connects by itself? |
|---|---|---|
| SSH key | A key | Yes, unless the key is locked or in the agent |
| Key + code | A key, then a one-time code | No — waits for you |
| Password | Your password | No — waits for you |
| Password + code | Your password and a code | No — waits for you |
| Kerberos | A Kerberos ticket, nothing else | No — waits for you |
SSH key
“Signs in by itself, every time. The best choice whenever the server accepts keys.” The key is one of these:
- a key in HiveBoard’s keychain — one it created for this server (Create a new key for this server), or one you made or imported;
- This computer’s SSH agent — for a key that cannot be copied (below);
- This computer’s SSH keys (~/.ssh) — on the Connection tab only: the keys
sshwould try by itself,id_ed25519,id_rsaandid_ecdsa. These stay on this computer, so a server set this way does not travel with HiveBoard, and the tab says so.
A key that has a certificate signs in the same way: the certificate is shown to the server first, then the key.
Key + code
For servers that take your key and then ask for a one-time code — and, on some, your password as well. Pick the key as for SSH key. When you sign in, the sheet asks for the code, and for a password “only if” the server asks for one: leave it empty if it does not. A server set to Key + code cannot be saved without a key.
Password
“HiveBoard asks for your password when it connects and keeps the connection open. Nothing is stored.” When your keychain holds a key, the Connection tab asks “Tired of typing it?” and offers to install that key once, so that a server that accepts keys can be switched to SSH key.
Password + code
For servers that also want a one-time code from an authenticator app. You type both on the sign-in sheet; codes last about 30 seconds, so the code is the last field. See Two-factor clusters.
Kerberos
For sites that take a Kerberos ticket and nothing else. While adding a server,
Kerberos is offered only when the server takes tickets, and recommended
only when nothing else gets in. A Kerberos server has no key, and it has to be a
server added with its address — a host taken as it is from ~/.ssh/config
cannot be one.
When you sign in, the sheet asks for your Kerberos password. HiveBoard uses
it to get a ticket from your realm’s own servers; it is never sent to the
cluster, and not stored. Leave it empty when this computer already holds a ticket
in a file (you ran kinit). The realm is worked out from the address —
cedar.example.edu gives EXAMPLE.EDU — and you can name it when yours is
called something else. The whole story is on Kerberos.
Two kinds of key that wait for you
A locked key
A keychain key protected by a passphrase. The server’s state says Key locked, its header offers Unlock key, and the sign-in sheet asks for the Key passphrase. A passphrase is never offered to a server as a password. A key created with an empty passphrase connects unattended.
A key in this computer’s SSH agent
A security key, a smart card, or a key a password manager keeps cannot be copied into HiveBoard. Choose This computer’s SSH agent — security keys, smart cards, password managers in the Key list, with SSH key or Key + code. HiveBoard asks the agent to sign only in a sign-in you start — Test connection, or the sign-in sheet, which for an SSH key server of this kind has nothing to type and a single Connect button. Touch the security key when it blinks, or approve the request; HiveBoard waits a minute and a half for that. Such a server never connects by itself: a reconnect in the background would make a key blink with nobody having asked. See Security keys, smart cards and the SSH agent.
How each one behaves
| Sign-in | What happens |
|---|---|
| SSH key | Connects by itself, reconnects by itself |
| Key with a certificate | The same; the certificate is shown first |
| Password | Waits for you to sign in once; keeps the connection |
| Password + code | The same, plus a one-time code |
| Key + code | Waits for you; the key goes first, then your answers |
| Locked key | Waits for you to unlock the key |
| Key in the SSH agent | Waits for you; the agent signs, perhaps after a touch |
| Kerberos | Waits for you; signs in with a ticket and no key |
A server that needs a person never dials by itself. Until you sign in, its refreshes fail at once with “signed out” instead of asking; only the sign-in sheet opens a connection, with what you typed, used once and discarded. That is what makes repeated prompts and wasted one-time codes impossible. A sign-in the server refused is not tried again until you act — see How sign-in is kept safe.
How to choose
- The server accepts keys: choose SSH key. HiveBoard can create the key and install it with your password, once; after that you never type anything for this server.
- It asks for a code after the key: Key + code.
- It asks for a password and a code: Password + code. When a test with Password fails because the server wanted a code, the test says so.
- Your key is on a security key or a smart card: SSH key with This computer’s SSH agent.
- It takes Kerberos tickets and nothing else: Kerberos.
What a server accepts is in So far while you add it, under Lets people in with: SSH keys, Passwords, Interactive prompts (codes), Kerberos tickets. A server that asks for more than a password and a code — a PIN, then a token — is handled on the sheet: see When a server asks more.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
Which server does HiveBoard reconnect by itself after its connection drops?
- One that signs in with an SSH key that has no passphrase
- One that signs in with Password + code
- One whose key is held by this computer's SSH agent
- One that signs in with Kerberos
Show the answer
One that signs in with an SSH key that has no passphrase Only an unlocked SSH key connects and reconnects by itself; every other method waits for you to sign in.
-
Where does your Kerberos password go?
- To your realm's own Kerberos servers, for a ticket — never to the cluster
- To the cluster, as your account password
- Into config.yaml, so you are not asked again
Show the answer
To your realm's own Kerberos servers, for a ticket — never to the cluster The Kerberos password gets a ticket from the realm and is then discarded; the cluster never receives 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.