Skip to content

Connecting to servers

A registered server is a Firebird host and port, a user and the connection options (charset, wire encryption and compression, authentication plugin, read-only). This page covers two ways to reach and register servers beyond typing them in: SSH tunnels and importing the connections of other tools.

SSH tunnels

Many production servers only accept Firebird connections on their own host, or sit behind a bastion host. Tick Connect through an SSH tunnel in the server dialog and fbadmin connects to the SSH host first and forwards the Firebird connection through it, like ssh -L.

  • Host and Port of the server are then as seen from the SSH host: localhost and 3050 when Firebird runs on the SSH host itself, or the database server's name in the private network when the SSH host is a bastion.
  • SSH host, SSH port (22), SSH user and the SSH authentication:
    • Private key: paste the key (OpenSSH or PEM format; Ed25519, ECDSA or RSA) and its passphrase if it has one.
    • Password.
    • SSH agent: the keys loaded in the agent of the user running fbadmin. Desktop mode only: in server mode the agent would give every fbadmin user the service account's keys.
  • SSH host key: the SHA256 fingerprint of the SSH server (as ssh-keygen -l prints it). Leave it empty and the first connection pins the key it sees; afterwards a different key is refused with The SSH host key of … changed. If the server was reinstalled, check the new key and Clear the stored one.
  • Test SSH connects, shows the host key (Pin stores it) and checks that the SSH host can open a connection to the Firebird host and port.

Everything goes through the tunnel: the Object Explorer, the Query Tool, both drivers, the services API (backups, restores, statistics, users, trace) and the command-line tool. fbadmin opens one SSH connection per server (per fbadmin user in server mode), forwards each Firebird connection over it and closes it after ten minutes without Firebird connections. Its local end listens on a random port of 127.0.0.1 only.

Secrets. The SSH password, key and passphrase are never returned by the API. They are stored like the server's Firebird password: in servers.json (mode 0600), encrypted when a master password is set (Security). For a shared server in server mode, the SSH settings and the pinned host key are shared, but each fbadmin user enters their own SSH credentials, as they do for the Firebird password.

Limits. The event monitor does not work through a tunnel: Firebird opens a second, server-chosen port for events. Paths in backups and restores are paths on the Firebird server, as without a tunnel.

Import connections from FlameRobin and DBeaver

Import in the toolbar reads the servers and databases you registered in another tool:

Tool File Where it is
FlameRobin fr_databases.conf ~/.flamerobin/ (Linux), %APPDATA%\flamerobin\ or %LOCALAPPDATA%\flamerobin\ (Windows), ~/Library/Application Support/flamerobin/ (macOS)
DBeaver data-sources.json (+ credentials-config.json for passwords) <workspace>/General/.dbeaver/ under ~/.local/share/DBeaverData/, %APPDATA%\DBeaverData\ or ~/Library/DBeaverData/

In desktop mode fbadmin finds these files for you; otherwise (or for a file from another computer) choose the file. Preview lists one server per host, port and user, with its databases, and says which ones you already have: those are added to the existing server, and a database you already registered (same path) is not added twice. Tick the servers to import; they go into the Imported group.

From DBeaver, only Firebird connections are taken (the Jaybird driver or a jdbc:firebirdsql: / jdbc:firebird: URL); embedded connections to local files are skipped.

Passwords are imported only if you tick Import saved passwords, and only those the tool stores in a readable form:

  • FlameRobin: passwords saved without encryption (authentication Use saved password). Passwords encrypted with FlameRobin's master password, Always ask, Trusted user and the system secret store are left out; the preview says so per database.
  • DBeaver: credentials-config.json, which DBeaver encrypts with a key built into DBeaver (so anyone who has the file can read it). It is not read if DBeaver protects it with a secure storage password.

Imported passwords are saved like any other server password (encrypted when you set a master password). The preview never sends passwords to the browser: the file is read again on the server when you import.

IBExpert is not supported yet: since 2011 it keeps its database registrations in its own embedded "IBExpert User" database, whose layout is not documented.