Hosts
Save servers as hosts, organize them in groups with tags and environments, and connect quickly.
Hosts
The Hosts page is Harbor’s home. It’s always the first tab, and shows every saved server as a card, grouped by Group.
Add or edit a host
Click New host, or choose Edit from a host’s ⋯ menu (or right-click it). The editor has these sections:
| Section | What it holds |
|---|---|
| Connection | Name, host or IP address, port, username, and group. |
| Authentication | SSH key, password, SSH agent, or for AWS instances AWS SSM or EC2 Instance Connect. See Logging in. |
| Environment | Production, Staging, Development or Personal, and a color. |
| Port forwarding | Tunnels that start with the session. See Port forwarding. |
| Advanced | Jump host, tags, startup command, tmux session, agent forwarding, session logging. |
The side panel shows the Equivalent command (the ssh command line that does the same) and
Test connection, which checks that the server answers, that its host key matches, and that the
login works, without saving anything. It never sends a password to a server whose host key you
haven’t trusted yet.
Save and connect saves the host and opens a terminal straight away.
Environments
Marking a host Production puts an orange outline on its tabs and a tag on its card, tabs and file browser, and turns on production guardrails, which ask before risky commands. Staging hosts can have guardrails too (Settings › Guardrails › Also apply to Staging hosts).
Tags and startup commands
Tags (under Advanced) are shown on cards and found by the search box and the command palette.
A Startup command is typed into the shell each time a terminal opens, such as
cd /var/www/app. With tmux turned on it runs only when the tmux session is first created.
Connect
- Click Connect on a card, double-click it, or select it and press Enter.
- Click Files on a card for an SFTP file browser instead. See File transfer.
- Right-click a host for Connect in a new window, Edit and Delete.
Quick connect without saving
Type user@host, user@host:2222 or ssh user@host -p 2222 in the Hosts search box and press
Enter, or open a new session with Ctrl+Shift+T (macOS ⌘T). Nothing is saved.
The command palette
Search or run… in the title bar (Ctrl+Shift+K, macOS ⌘K) finds open tabs, hosts, snippets, pages and actions. On a host, Enter connects and Ctrl+Enter (macOS ⌘Enter) opens its files.
Find hosts
- The search box filters by name, address, instance ID, type, OS or tag.
- The environment chips filter by Production, Staging and so on, with counts.
- Switch between grid and list view, collapse groups, or show running cloud instances only.
- Selecting a host opens a side panel with its details, tags and quick actions such as copy the connect command and refresh server info.
- The sidebar lists each linked cloud account; click one to see only its hosts.
Delete a host
Select it and press Del, or choose Delete from its menu. Its saved password and passphrase are deleted with it. The host’s trusted host key stays in the known hosts list, so reconnecting to the same address later doesn’t ask again.
Import hosts
- Connectors › Import brings in hosts from
~/.ssh/config, Termius, PuTTY, WinSCP and MobaXterm, with a preview. See Import from other apps. - Cloud connectors discover and keep servers in sync from AWS, Azure, Google Cloud, DigitalOcean, Hetzner and Tailscale.
Connection history
The Sessions page lists every connection: date, start and end time, duration, host, your local user and computer, and the result (active, closed or failed, with the error). Filter it, reconnect from any row, or Clear history. Harbor keeps the most recent 2,000 sessions.