# The connection test

> HiveBoard's five-step connection test — reach, identity, sign-in, account, scheduler: what each step checks, what a failure means, where to run it.

Source: https://hiveboard.dev/docs/connections/connection-test · Section: Servers and connections · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- The test signs in with the settings on screen and runs five steps: Reach the server, Verify its identity, Sign in, Read your account, Find the job scheduler.
- The first step that fails is marked, the rest are skipped, and a sentence says what to fix.
- Every command it runs only reads; a test never disturbs the connection a server already has.
- Run it while adding a server, from a server's header, its Overview, its Connection tab, or for several servers at once.

The connection test signs in to a server with the settings on screen and runs a
few commands that only read. It draws itself as a checklist of five steps, each
ticked as it passes. The first step that fails is marked, the steps after it are
skipped, and a sentence under the list says what to fix.

You meet the test as the third step of [Adding a server](/docs/connections/add-a-server),
and you can run it again from any server's page.

## The five steps

| Step | What it checks | Shown when it passes |
|---|---|---|
| **Reach the server** | The address and port answer, via a jump server if set | — |
| **Verify its identity** | The host key against the record | First visit or known, and the fingerprint |
| **Sign in** | The method and what you typed | — |
| **Read your account** | Runs `whoami` and `hostname` | Your user and the machine you landed on |
| **Find the job scheduler** | Looks for `squeue`, `qstat`, `bjobs` | Jobs queued, yours, up to five partitions |

When **Verify its identity** passes, its line says one of three things: *first
visit — trusted and remembered* (this is when a new server's identity is
recorded), *matches the key on record*, or *vouched for by a certificate
authority on record*.

**Find the job scheduler** passes even when none is found: its line then says
"none found — the job list will be empty". HiveBoard reads Slurm queues.

## When a step fails

| Stopped at | What it usually means | What to do |
|---|---|---|
| **Reach the server** | Wrong address or port, or no answer | Check both; try the campus network or VPN |
| **Verify its identity** | Not the identity on record | Do not connect yet; see below |
| **Sign in** | Key, password or code refused | Read the sentence under the list |
| **Read your account** | Signed in, but no sensible answer | Look at the Diagnostics tab |

The sentence under a failed **Sign in** points at the fix it can see:

- "The server didn't accept the key. Install the key on the server first, or
  check the username."
- "The server also wants a one-time code. Switch sign-in to “Password + code” and
  enter the current code."
- "The key is locked with a passphrase. Unlock it to connect."
- "The server didn't accept the sign-in. Check the username and the key or
  password."

A Kerberos failure — no ticket, a wrong Kerberos password, a realm that cannot be
reached — is shown in its own words. Under the sentence, **What the server
said** opens the exact error, and **The server's message at sign-in** shows any
text the server sent with its questions.

> [!WARNING]
> A failed **Verify its identity** means the server is not the one HiveBoard
> remembers: it was re-keyed by its administrators, or something else is
> answering at its address. No password, key or code was offered to it. Ask your
> cluster's administrators before you trust it — see
> [Its identity changed](/docs/help/identity-changed).

## Where to run it

- **While adding a server** — **Test connection** on the Sign-in step; after a
  failure, **Try again**.
- **On the Connection tab** — **Run test**. It uses the settings in the form,
  saved or not, so you can try a change before you save it.
- **In the server's header** and **on its Overview** — **Test connection** runs
  the test and switches to the Connection tab to show it. The header offers it
  when nothing needs fixing; otherwise its button is **Sign in** or **Try
  again**.
- **In the server's ⋯ menu**, or on a right-click on its row or its chip —
  **Test connection**.
- **For several servers** — select them and press **Test connection**. They are
  tested one after another, and any that would need something typed is left out
  ("Not tested — needs you to sign in").

On a server that signs in with a password, a code, Kerberos or a locked key and
is not connected, **Test connection** opens the [sign-in sheet](/docs/connections/sign-in-sheet)
instead — unless you have unsaved changes on its page.

## What the test does not do

- It changes nothing on the server. Every command it runs only reads.
- It never disturbs a server's live connection. When the settings on screen
  differ from the saved ones, the test runs on a connection of its own, closed
  afterwards.
- A test of several servers at once never stops to ask you a question; it says
  which question a server asked. A test while adding a server can ask — see
  [When a server asks more](/docs/connections/server-questions).
- It does not lift a refused sign-in. A test of the saved settings of a server
  whose sign-in was refused fails with that refusal, without asking the server
  again: fix the cause, then press **Try again** — see
  [A refused sign-in](/docs/help/sign-in-refused).

> [!BUILD]
> In the Python build a test also lets a server whose sign-in was refused be
> tried again.

## Check now is not a test

**Check now**, on a server's Overview and for several servers at once, asks over
the connection HiveBoard already holds whether the server answers. It never asks
anyone to sign in, and it skips a server that waits for a sign-in. The test signs
in and runs all five steps.

## Check yourself

1. The test stops at Verify its identity. What has been sent to the server?
   - No credential — the identity is checked before any password, key or code is offered ← the answer
   - Your password, but not your one-time code
   - Your public key only
   Why: The identity step comes before Sign in, and a refused identity is marked "not acceptable — nothing was sent".

2. What is the difference between Check now and Test connection?
   - Check now asks over the connection HiveBoard already holds whether the server answers; the test signs in and runs all five steps ← the answer
   - None — they are two names for the same thing
   - Check now signs in again; the test only pings the server
   Why: Check now never asks anyone to sign in; the test signs in with the settings on screen and runs the five steps.

## Try it in the app

- Open one of your servers, go to its **Connection** tab and press **Run test**; read what each step says under its tick.
- Compare the **Read your account** line with what `whoami` and `hostname` print in a terminal on that server.

## Related

- [Adding a server](https://hiveboard.dev/docs/connections/add-a-server.md)
- [A server's page and its tabs](https://hiveboard.dev/docs/connections/server-tabs.md)
- [A server that will not connect](https://hiveboard.dev/docs/help/cant-connect.md)
- [Its identity changed](https://hiveboard.dev/docs/help/identity-changed.md)
- [A refused sign-in](https://hiveboard.dev/docs/help/sign-in-refused.md)
