Skip to content

First connection

This guide walks through adding a host, signing in to it with a password or an SSH key, and the host key question you see the first time you connect.

  • Phone: on the Hosts tab, tap the + button. The New connection form opens.
  • Computer: on the Hosts page, click New host at the left of the toolbar, or press Ctrl+Shift+N, or open the command palette (Ctrl+Shift+K) and choose New connection. On a Mac, the File menu has New connection (Cmd+Shift+N). The arrow beside New host (More ways to add) also holds New group, Quick connect, Serial, Import hosts, From a shared host file and Paste a share link.

On a computer the editor opens in a pane beside the Hosts page. Its side rail has Basic, Auth, Network, Terminal and Advanced.

To reach a server once without saving it, use Quick connect on a computer (Ctrl+T, or Cmd+T from a Mac’s File menu) and type user@host:port. The filter field in the middle of the Hosts toolbar (“Filter hosts, or connect to user@host:port”) does the same: type user@host:port and press Enter.

The Connection part of the form has these fields:

  • Nickname: the name the host is shown by, for example “Production web”.
  • Protocol: SSH for an SSH server.
  • Address and Port: the server’s IP address or domain name, and its port (22 unless the server listens elsewhere).
  • Key: what the host signs in with. A saved key holds the username and how you sign in (an SSH key, a password, or a password kept in a password manager). Pick one, or choose Create new key.

Below it, Add another key adds other keys the same host can be signed in with: pick a saved one, or Create new key at the end of its menu. Connecting uses the one at the top; the others are offered as Connect as (a computer’s host menu, or on a phone the host’s own menu: long-press the host, then More and Host actions).

On a computer, save with Save host at the foot of the form (Save changes when you edit a host). On a phone, the same button is at the foot of the form.

To connect: on a phone, tap the host. On a computer, a click opens the host’s panel beside the page, with Connect; a double click, or Enter on a selected host, connects.

The toolbar at the top of the Hosts page holds, from left to right:

  • New host, and the arrow beside it with the other ways to add (see above).
  • Local terminal: a terminal on this computer, in a tab of its own.
  • The filter field: type to filter the hosts, or type user@host:port and press Enter to connect. Enter on a filter connects to the first host it found.
  • In a team, the vault on screen.
  • Sort: Recent, Health, Status, A → Z, IP address, Group color or Manual. With Manual, drag a card onto another to change the order.
  • Filter: Show only Open now or Needs attention, a Group, Tags, or a Kind. The button counts the filters that are on.
  • The view: Cards, Compact grid or List.

In the List view each host is a row with its Address, Group, Health, Status and Last used (and Tags, if you add that column). Click a column’s heading to sort by it, and again to turn the order round. Columns, at the end of the headings, picks the columns shown.

The page has up to three sections: Workspaces, Groups and Hosts. The arrow before a section’s name folds it away (Hide this section) and brings it back (Show this section). Drag a host onto a group to move it there. ZestSSH remembers the view, the folded sections and the columns on this computer.

  • Select, beside Active first, starts selecting; while it says Selecting, a click puts a host in or takes it out.
  • Ctrl+click (Cmd+click on a Mac) adds a host to the selection or takes it out.
  • Shift+click selects every host from the one you clicked last.
  • Ctrl+A (Cmd+A) selects every host shown. Esc stops selecting.
  • Drag a box from an empty part of the page to select the hosts it covers.
  • Or right-click a host and choose Select.

A bar at the foot of the page then offers Edit… (one editor for every selected host), Open…, Tags, Move to group, More actions (Pin, Save as workspace, Icon color, and where there is a vault to go to, Move to… and Copy to…), Delete and the close. Open… opens In tabs (one tab for each host) or In split panes (one tab with the hosts side by side, up to 8); past 8 hosts it asks how: a few at a time, in split panes, or all at once. Dragging one of the picked hosts onto a group moves them all, and Undo puts them back. On the Free plan, hosts past the session limit are not opened, and ZestSSH names them. See Selecting many items.

A click on a host opens its panel beside the page, with Connect (or Switch to session when it is open already), Edit, Copy SSH command, Open in split and its menu. The panel shows:

  • Health: the host’s CPU, memory and disks once it is watched. Watch this host starts watching it: “See its CPU, memory and disks here, and be told when one runs high.” See Server monitor.
  • Recent sessions and Port forwards (with + Add).
  • Connection: the Address, and the Key it signs in with.
  • Host key: whether ZestSSH knows the host’s key and since when, or that it changed.
  • Where they apply: its tmux sessions (Open tmux), Wake on LAN (Wake (WoL)), its Tags and its Note.

With the panel open, E edits the host, Ctrl+Enter (Cmd+Enter) opens it in a new tab, and Delete deletes it after asking. Esc closes the panel. When you edit a host, its editor takes the panel’s place.

Create a key with Password as its kind and enter the password. ZestSSH keeps it in this device’s secure storage, never in the database in plain text.

If the host’s key has no saved password, ZestSSH asks for it when you connect (Enter password). Tick Save this password to keep it for next time.

Once the connection works, consider moving to a key. A password is easier to guess or reuse than a key.

Pick a key of the kind SSH key. If you have not made or imported a key yet, see Key management.

The server must have your public key in ~/.ssh/authorized_keys. Two ways to get it there:

Let ZestSSH install it. If the host already lets you sign in (for example with a password), use Install on hosts…:

  • Computer: open Keys in the side rail, select the key, and click Install on hosts….
  • Phone: open Manage > Keys, open the key, and tap the server icon (Install on hosts…).

Tick the hosts and confirm. Each host reports whether the key was added, was already there, or was not added and why. This works for hosts that run Linux, BSD or macOS. See Install a key on hosts.

Copy it by hand.

  • Computer: in Keys, select the key and click Copy public key. The public key line is copied.
  • Phone: in Manage > Keys, long-press the key, tap Key actions, then Share public key. The public key line is copied.

Then, on the server, append it:

Terminal window
echo "ssh-ed25519 AAAA...your-key... zestssh-generated" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh

A key can also hold a password: the Password, tried after the key field. It is sent only to a server that does not take the key and asks for a password.

The first time you connect to a server, ZestSSH asks whether to trust its host key. This is Trust On First Use (TOFU), the same model OpenSSH uses.

The question (First connection to the server) shows the key’s type and the fingerprint of the server’s host key, in groups of four, with Copy fingerprint. Compare the fingerprint with one you know is right. With console access to the server, print it (the question gives this command for the key’s type under Check it on the server:):

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

If it matches, choose Trust and connect (on a computer and a phone alike), or Reject. ZestSSH saves the key, and later connections to that host are checked against it without asking.

If you turn this question off in Settings > Security and privacy (on a computer, Unknown host keys set to Trust on first use; on a phone, the Ask before trusting new keys switch), a new host’s key is trusted without the question, and the app tells you it did. A host key that another of your devices recorded and synced is trusted too, with a notice naming that device.

If a server shows a different key from the one you trusted, ZestSSH stops and shows Host key changed, with the key you trusted, the key it received now, and a command to run on the server to compare. This can mean:

  • The server was rebuilt, or its host keys were made again.
  • A different machine now answers at that address.
  • Someone is intercepting the connection.

A server that shows a key of another type than the one you trusted (for example Ed25519 where it was RSA) counts as a changed key too, so a different algorithm cannot slip past the check.

The safe choice, Cancel and disconnect, is the default. Choose Trust new key only when you know why the key changed; it replaces the saved key for that host.

Once connected, you are in the terminal. A few things to know:

  • Touch gestures (phone): a two-finger tap sends Ctrl+C, a three-finger tap pastes, a two-finger swipe left or right switches sessions, and a pinch changes the font size.
  • Keyboard shortcuts (computer): Ctrl+Shift+W closes the current tab and Ctrl+Shift+K opens the command palette, even while you type in a terminal. Outside a terminal, Ctrl+Tab goes to the next tab and Ctrl+\ closes the current split. On a Mac, these shortcuts use the Control key; the menu bar also has Cmd+W for Close tab and Cmd+K for the palette. See Keyboard Shortcuts.
  • Connection health: a host you are connected to shows as connected, with that session’s latency. A reachable dot for hosts you are not connected to is optional and off until you turn it on: Check whether hosts are reachable, under Settings > Terminal and SSH on a computer or Settings > Notifications on a phone. A server logs each of these checks. See Server monitor.

ZestSSH says what went wrong and what to try, with Retry and Technical details you can copy with Copy details (names and secrets are taken out). See Troubleshooting setup.