Skip to content

SSH credentials and jump hosts

The Credentials page stores the SSH keys and passwords FireHawk logs in with, and the jump hosts (bastions) it goes through. A credential is entered once and picked on any number of hosts; secrets are encrypted on the server and never shown again. The page needs the credentials.manage permission.

  1. Open Credentials, tab Credentials, and click New credential.
  2. Enter a Name (for example prod-deploy) and an optional Description.
  3. Type: SSH key. Under Key, choose:
    • Generate a new key, with Key type Ed25519 (recommended), ECDSA P-256 or RSA 3072; or
    • Import an existing private key: paste the Private key and its Passphrase (if encrypted).
  4. Click Create credential.
  5. Click Public key on the credential’s row and add the line to ~/.ssh/authorized_keys of the SSH user on every host (and jump host) that will use it. Copy puts it on the clipboard. The key’s comment is firehawk-<name>.

Then edit each host and set Auth type to Stored credential with this Credential.

Choose Type Password and enter the Password. A password credential is used both to log in and as the sudo or doas password.

Column Content
Credential Name and description.
Type Key type, or password; passphrase when the imported key has one.
Fingerprint SHA256 fingerprint of the key.
Used by The hosts and jump hosts using it.
Updated When it was created or last rotated, and by whom.

Edit changes the name and description; leaving a secret empty keeps it. Replacing the private key in Edit does not touch the hosts: use Rotate for that. A credential in use cannot be deleted.

Rotate replaces a key credential on every host and jump host that uses it, without risking a lockout:

  1. FireHawk generates a new key.
  2. It appends the new public key to ~/.ssh/authorized_keys of the login user on each host and jump host (as that user, without sudo).
  3. It logs in with the new key on each of them.
  4. Only when every login succeeded does the credential switch to the new key, and the old key’s line is removed from authorized_keys.

If any host or jump host cannot be reached or refuses the new key, the new key is removed again and the credential stays unchanged.

Rotation runs as a background job: follow it on the Jobs page. A failed rotation is recorded in the audit log and can be sent as a notification.

Hosts in networks FireHawk cannot reach directly are reached through a jump host, like ssh -J.

  1. Open Credentials, tab Jump hosts, and click New jump host.
  2. Fill in Name, Address, SSH port, SSH user and the Credential to log in with (a stored credential is required).
  3. Reached through: Directly, or another jump host to chain them.
  4. Optional: Expected host key fingerprint, checked before the key is pinned.
  5. Click Create jump host, then Test to log in once and pin its host key.
  • On a host: the host form’s Jump host field.
  • On a host group: Jump host for the group’s hosts in the group dialog. Every host of the group without its own jump host goes through it. A host cannot opt out of its group’s jump host other than by naming another jump host.

A jump host can itself be reached through another one. FireHawk opens the chain from the outermost hop inwards, up to four jump hosts; loops are refused.

Jump host keys are pinned on first use like host keys, and each hop’s key is fetched through the previous hop. When a jump host’s key changes, its row shows the trusted and the offered fingerprints, and Accept new key re-pins it after you compared the fingerprint on the jump host’s console:

Terminal window
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

A jump host in use cannot be deleted.

Key files in the server’s sshkeys/ directory and per-host passwords keep working; see Hosts. Credentials are the better choice for many hosts: one key per environment, rotated in one place.

Configuration exports never contain secrets: hosts refer to credentials and jump hosts by name. See Configuration export and import.