HARBOR USER GUIDE

Logging in and host keys

SSH keys, passwords and SSH agents in Harbor, and how host key verification protects you.

Logging in and host keys

Ways to log in

Choose one under Authentication in the host editor.

SSH key

Choose a Private key file (for example ~/.ssh/id_ed25519) or a Key from keychain. If the key is encrypted, enter its Passphrase to save it, or leave it blank to be asked when you connect. Keys in OpenSSH and PEM formats work, and PuTTY .ppk files in format version 2. For a version 3 .ppk, export it from PuTTYgen with Conversions › Export OpenSSH key.

No key yet? Click Generate new to create one, then install it on the server. See Keychain and SSH keys.

Password

Type the password to save it (encrypted), or leave it blank to be asked each time. Servers that ask with keyboard-interactive prompts get the same password. To remove a saved password, choose Forget the saved password.

SSH agent

Uses the keys loaded in your running SSH agent: ssh-agent on macOS and Linux, or the OpenSSH Authentication Agent service on Windows. You can switch the agent Harbor uses to 1Password or Bitwarden; see 1Password and Bitwarden agents.

AWS SSM and EC2 Instance Connect

For EC2 instances from a linked AWS account. Harbor creates a temporary key for each connection, so there’s nothing to keep. See Amazon Web Services.

Saved secrets

Saved passwords, passphrases and cloud secrets are never stored in plain text. They’re encrypted by your operating system’s keystore (Windows DPAPI, macOS Keychain, Linux libsecret) or, if you set one, by your master password. They’re never sent to the app’s window; only the background process that makes the connection reads them.

Host keys

Every SSH server has a host key that proves its identity. Harbor checks it on every connection, so nobody can pretend to be your server and capture your password.

The first connection

Harbor shows the server’s key type and fingerprint, for example SHA256:Vx2k…. If you can, compare it with the fingerprint from your server administrator, or run this on the server:

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

Click Trust and connect if it matches. Harbor remembers the key for that address and port.

When a key changes

If a server’s key is different from the one you trusted, Harbor stops and shows both fingerprints with a clear warning. This happens legitimately when a server is reinstalled or rebuilt, or when an address is reused for a different server. It can also mean someone is intercepting the connection. Don’t accept a changed key unless you know why it changed.

Background connections

Port forwards started from the Port forwarding page, snippet runs on several hosts, key installs and rotations, and Docker listings connect without a window to ask in. They only connect to servers (and jump hosts) whose key you have already trusted in a terminal, and fail with a message otherwise. Connect once in a terminal to trust the key.