HiveBoard Docs Search the docs… Ctrl K Get HiveBoard
Browse the help centre
  1. Help centre
  2. Keys and sign-in

Two-factor clusters

Sign in to a cluster that asks for a one-time code: Password + code or Key + code, why a code is asked once per connection, and the first QR code.

4 min read HiveBoard 0.1.7 Updated Servers and sign-in · lesson 5 of 10

In short

  • Choose Password + code for a cluster that asks for your password and then a code, or Key + code for one that takes your key and then asks for a code.
  • HiveBoard holds one signed-in connection per server, so you type a code when it connects — not every 20 seconds.
  • The code is used once and never logged or written to disk; such a server never connects by itself.
  • A cluster that has just turned two-factor on sends its setup QR code at the first login, and the sign-in sheet shows it.

Many clusters ask for a one-time code — from an authenticator app, or Duo — at every login. HiveBoard signs in once with your password (or key) and the code, then keeps that connection open: you type a code when it connects, not every time it reads the queue.

There are two sign-in choices for such clusters: Password + code and Key + code. A server that uses either waits for you to sign in and never connects by itself.

Why HiveBoard holds one connection

If every command opened a new SSH connection — which is what running the system’s ssh for each command means, and OpenSSH on Windows cannot share one connection between commands — you would type a fresh code every 20 seconds.

So HiveBoard holds one signed-in connection per server and runs each command in a new channel inside it. A keepalive goes every 30 seconds, and the link is declared dead only after five in a row go unanswered. A code is asked for again only when the connection really drops, or after you quit and start the app again.

Choosing the sign-in

The cluster asks forChoose
your password, then a codePassword + code
your key, then a codeKey + code
your key, then your password and a codeKey + code

Choose it on the Sign-in step when you add the server, or later on the server’s Connection tab. For Key + code, pick the key as well: a server cannot be saved that way without one.

In the wizard, type your password and the current code to run the test. HiveBoard keeps the connection the test opened, so saving the server does not ask again.

If a test of a password or key sign-in stops with “The server also wants a one-time code. Switch sign-in to “Password + code” and enter the current code.”, the cluster has two-factor: switch as it says (or to Key + code).

Signing in

Click the server’s chip — it says Sign in or Signed out — and the sign-in sheet opens:

  • Password + code asks for Password and One-time code.
  • Key + code asks for One-time code, and has a Password field marked “only if Nimbus asks for one”. Leave it empty if the cluster only asks for a code after the key.

Press Sign in. Codes last about 30 seconds; if yours is about to roll over, wait for the next one. Everything you type is used once to open the connection, then discarded.

Which answer goes to which question

  • A question about the password gets the password and nothing else, once. With no password typed it is not answered at all: sending the code there would be a failed login and a burned code.
  • A question about a code — “verification”, “passcode”, “token”, “OTP”, “Duo”, “PIN” — gets the code, whatever else it says. A Duo prompt such as Passcode or option (1-1): counts as one.
  • With Key + code, the key is offered first; what the server asks after it is answered from what you typed.

One attempt is one failed login at most: a password is not sent twice, and the server’s questions are not gone through a second time. If the server asks something the sheet did not collect — a PIN and then a token, a new password — see When a server asks more.

The first login after two-factor is switched on

A cluster that has just turned two-factor on sends its setup QR code (and the key behind it) along with its first sign-in questions. HiveBoard keeps whatever the server said and shows it on the sheet under What Nimbus said at sign-in, and on the server’s Diagnostics tab. Scan the code with your authenticator app, or type the key it shows, then sign in with the code the app gives you.

When the code is turned down

The sheet says why, in words that fit: “The code wasn’t accepted — it has probably expired. Enter the current one from your authenticator app.” Nothing is retried by itself: each attempt is one you make. See A refused sign-in.

What HiveBoard promises

  • The code is used once and never logged or written to disk. Your password is not stored.
  • The server’s identity is checked before your password or code is sent — this is where an impostor would collect a code.
  • When the connection drops, the server shows Signed out and waits for you. Refreshes do not each ask for a code.

Check yourself

2 quick questions on this page. Nothing is sent anywhere.

  1. Why does HiveBoard not ask you for a new code every time it refreshes the job list?

    • It stores the code and sends it again
    • It keeps one signed-in connection open and runs each command inside it
    • It switches to your SSH key after the first sign-in
    Show the answer

    It keeps one signed-in connection open and runs each command inside it One authenticated connection is held open, with a new channel per command; a code is asked for again only if that connection really drops.

  2. The server asks for your password, but you left the password field empty. What does HiveBoard send?

    • The one-time code instead
    • An empty answer
    • Nothing: a password question is not answered at all
    Show the answer

    Nothing: a password question is not answered at all Sending the code, or nothing, to a password question would be a failed login and a burned code, so it is not answered.

Try it in the app

On your own computer, with HiveBoard open. Tick them off as you go.

Lesson 5 of 10 in Servers and sign-in Next lesson: When a server asks more

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.

↑ ↓ to moveEnter to openEsc to close