Skip to content

Cloud sync

Sync keeps the hosts, keys, snippets and settings of your personal space the same on all your devices. Your data is encrypted on your device before it leaves it: the storage cannot read it, and can see only when a device last synced and what kind of device it was (see What the storage sees). Sync is free on every plan with storage you run yourself. Juiced adds ZestSSH Cloud, storage we host for you.

A team’s shared vaults are not part of this sync: a team’s hosts come from the team. See Teams overview.

You choose one storage per device. Whatever you pick, the encryption is the same.

Storage What you enter Cost Notes
ZestSSH Cloud Nothing: sign in to your ZestSSH account Juiced Hosted at api.zestssh.com. Up to 7 devices for one person (see The seven-device limit).
WebDAV Server URL, Username, Password, Folder (optional) Free Nextcloud, ownCloud or any WebDAV server you run. The folder is /ZestSSH/sync/ unless you name another.
S3-compatible Endpoint, Region, Bucket, Access key ID, Secret access key, Key prefix (optional), Path-style addressing Free AWS S3, Backblaze B2, MinIO, Cloudflare R2. Path-style addressing starts on, as R2, B2 and MinIO need; turn it off only if your provider needs virtual-host style.
Google Drive A Google sign-in Free One file in the hidden app-data folder of your Drive. ZestSSH can see only that file.

Storage you run yourself has no device limit and no charge from ZestSSH: ZestSSH never touches it.

With storage of your own, your synced data goes only to that storage, encrypted on your device. The app still reaches ZestSSH’s own servers for other things, never with your synced data: when you are signed in to a ZestSSH account, about the account itself (its signed-in devices, purchases and teams); when you open Help, for the guides (docs.zestssh.com) and the Support Hub’s lists; and on a computer, zestssh.com to look for new versions. On a phone, the app also asks RevenueCat, which handles purchases, what you have bought.

On a phone, Google Drive signs in through the Google sign-in on the phone. On a computer, choosing Test connection opens Google’s sign-in page in your browser, and the sign-in is kept on that computer only. If your copy of ZestSSH for computers has no Google sign-in built in, the storage picker says Google Drive sync is not available on this computer and asks you to choose another storage.

A device that was set up with a self-hosted ZestSSH sync server before 3.0 still shows it as its storage and can move to another one. New setups cannot choose it.

https:// is always accepted. Plain http:// is accepted for WebDAV and S3 only when the address is on your own network: this device (localhost, 127.0.0.1), a private address such as 192.168.1.20 or one in 10.0.0.0/8, an address in 100.64.0.0/10 (as Tailscale hands out), or a name only a private network can resolve, such as nas, nas.local or nas.lan. The form then warns that the server’s password travels unencrypted on that network, while your data is still encrypted on the device first. Any other http:// address is refused.

  1. Open the Account page:
    • On a computer: open Settings, then Account.
    • On a phone: open More, then Account.
  2. In the Sync section, on the Storage row, choose Choose (or Change) and pick a storage. For WebDAV, S3 or Google Drive, fill in its fields and choose Test connection, then Save.
  3. On the Sync row, choose Set up sync.
  4. Choose a sync password and type it twice (see Sync password rules).
  5. Save the recovery key ZestSSH shows you (Copy, Download .txt or Print), tick I have saved my recovery key, then choose Finish.

ZestSSH encrypts everything and sends it to the storage.

Open the same Account page on the other device, pick the same storage, and choose Set up sync. ZestSSH finds the vault that is already there and asks for its sync password: “This store already has a vault. Enter its sync password and this device joins it.”

Hosts, keys and snippets already on this device are kept. Joining writes each item from your storage over the same item here and adds the ones that are new; items that are only on this device stay, and the next sync sends them to your other devices. Items are matched by their identity, not by name or address, so a server you added by hand on both devices before they synced is two hosts, and it shows twice. Delete the one you do not want.

On ZestSSH Cloud you can choose Approve from another device instead of typing the sync password. Both devices show the same three pairing words. When they match, you approve on the device that already syncs, and the key reaches the new device sealed to a one-time key that only the new device holds. ZestSSH Cloud passes the messages on and cannot open what it carries.

Choosing another storage disconnects this device from the old one. Nothing is deleted: your data stays on this device and in the old storage. You then set sync up again on the new storage.

The sync password must be at least 12 characters, or ZestSSH says “Password must be at least 12 characters.” It must also score at least 3 on a 0 to 4 scale: 12 characters or more scores a point, 16 or more another, both upper and lower case one, a digit one, and a symbol one. A password of one repeated character scores 0, and one that starts with a run such as 123 or abc loses a point. Below 3, ZestSSH says “For a vault holding your keys, use a stronger password. Mix uppercase, numbers, and symbols, or add length.”

The backup password for .zest files is a different password. See Local backups.

Everything that syncs travels as one encrypted package. The steps:

  1. Your data key. When you set up sync, ZestSSH makes a random 256-bit data key. It is the key that encrypts your data.
  2. Your sync password becomes a key. ZestSSH runs your sync password through Argon2id with a random 32-byte salt: 128 MiB of memory, 3 passes, 4 lanes, a 32-byte (256-bit) result. Vaults made by older versions of ZestSSH use 64 MiB and keep working, because the settings are stored with the vault.
  3. The data key is wrapped. The data key is encrypted with AES-256-GCM under the key from your sync password. A second copy is encrypted under a key made the same way (Argon2id, its own 32-byte salt) from your recovery key.
  4. Your data is encrypted. The data is written as JSON, compressed with zlib, and encrypted with AES-256-GCM under the data key, with a random 12-byte nonce for every upload. The 16-byte GCM tag means any change to the encrypted package is caught when it is opened.
  5. A check value. So the storage can tell a right sync password from a wrong one without learning it, ZestSSH derives a check value from the sync password’s key (HKDF with SHA-256, then SHA-256). The recovery key has its own check value, made with a different label, so the two cannot be confused.

The recovery key looks like ZEST-XXXX-XXXX-XXXX-XXXX-XXXX: 20 random characters from an alphabet without look-alikes such as 0 and O, or 1, I and L. A team invite code has the same shape but only lets someone join a team, and a redeem code, which unlocks a plan or gives a team seats, has three groups after ZEST- (ZEST-XXXX-XXXX-XXXX; older ones have two).

Changing the sync password only wraps the data key again, under the new password. Your data is not encrypted again.

ZestSSH refuses Argon2id settings from the storage that are weaker than 64 MiB, 3 passes and 4 lanes, or larger than 1 GiB, 32 passes and 16 lanes. A storage that tried to make your password cheaper to guess, or to make your device run out of memory, is refused. A download larger than 16 MB, or one that unpacks to more than 64 MB, is refused too.

Your sync password, your recovery key, the key made from your password and your data key never leave your device.

ZestSSH Cloud receives and keeps, for your account:

  • the encrypted package,
  • the salt and Argon2id settings of your sync password,
  • the data key wrapped under your sync password, and wrapped under your recovery key, with the recovery key’s salt,
  • the two check values,
  • a version number, when the package was last written, and its size.

To count your devices, it also has the devices you are signed in on, as it has for every account. It cannot read your hosts, addresses, user names, keys, passwords or snippets: they are inside the encrypted package.

WebDAV, S3 and Google Drive hold one file, zestssh-sync.json, with the same items as above plus an id for the device that wrote it last (such as android_1a2b3c4d). Anyone who can read your storage can see that file, and nothing inside the encrypted package.

Data What goes with it
Hosts Everything you set on a host, with its tags and its other accounts
Keys The key and what it holds: password, private key, saved passphrase and certificate. A key that gets its password from a password manager syncs the reference, not the password.
Groups Name, color, order
Snippets and snippet categories Everything you set on them
Known host keys The keys you trusted, with where each was recorded
Port forwards The forward itself. See What stays on each device.
Networks and per-host network settings Everything on the Networks pages
Alerts (the terminal triggers) Pattern, actions, color, scope
Command history The commands and when they ran
Deletes A delete on one device removes the item on the others (see How changes are merged)
Your account’s keys for teams When you are signed in to a ZestSSH account, so every device of yours holds them (see Sync and teams)
Hosts imported from a cloud The mark of where each came from (the provider’s token does not sync: see Import hosts from a cloud)

These settings sync too: the terminal theme, font, font size and margin, cursor style and blink, ligatures, scrollback lines, keep-alive interval, connection timeout, default port, user name and sign-in method, copy on select, the bell, OSC 52 clipboard, haptic feedback, keep the screen awake, auto reconnect, tmux auto-detect, close confirmation, the dangerous command check and the snippet confirmation, asking before trusting host keys, your keyboard shortcuts, the phone’s extra key rows and where they sit, and the notification switches for monitor alerts, lost connections, security alerts and transfers.

Everything a team hands you is sealed to your team keys. Your team keys are made on the device the first time you make or join a team, sync on or not. Sync carries them, encrypted, to your other devices. A team with a seat bought includes ZestSSH Cloud sync (and Squeezed) for everyone in it, so you do not need Juiced or storage of your own for it.

  • If another of your devices made your team keys, it says Your team keys are on another device. Choose Sync now once that device has synced, then accept. If you no longer have that device, choose I don’t have that device: you can start over with new keys on your Account page, under Your keys.
  • Whether a forward starts by itself, whether other devices on your network may use it, and a bind address other than 127.0.0.1. A forward that is new on a device starts by hand only, on 127.0.0.1, until you change that on that device.
  • Whether a key may be used for unattended runs (“Allow unattended runs”).
  • Whether this device has confirmed a host key on its own.
  • The app theme, custom terminal themes you imported, and saved workspaces.
  • Sync’s own settings (storage, schedule, pause), automatic backup settings and their password, and backup locations.
  • The app lock and PIN, and the Server Monitor’s Prometheus settings.
  • Session logs, transcripts and automation history.
  • Tokens of cloud accounts kept in sync.

Sync runs by itself, every 15 minutes unless you change it, and you can pause it on one device or sync by hand. While it runs by itself, a change you make is sent a few seconds after you make it. See Pause sync and choose when it runs for every choice.

On the Account page, the Sync row says how sync stands: On, Paused, the last sync, or what went wrong, with Copy details where there is more to read. Restore from cloud writes what you synced over this device’s copies, except a host or snippet changed here later, which is kept (see When two devices changed the same thing).

With sync off, saving a personal host says Saved on this device only: the host is not on your other devices, and it is lost with this device. Set up sync opens the Account page, Not now closes the message, and Don’t show this again stops it on this device (Reset all settings brings it back). A team’s hosts go to the team either way, so saving one never shows it.

Each device remembers every item as it was the last time that device synced. When it fetches, it compares three copies of each item: this device’s, the storage’s, and the one it last synced. A change made only here is kept and sent, a change made only elsewhere is taken, and an item changed on both sides goes to the later change. A delete wins over a change made before it. Deletes are remembered for two years.

Pause sync and choose when it runs explains each case, with an example.

Two devices writing at the same moment do not overwrite each other: every write names the version it was based on, and a write based on an older version is refused. The device then fetches the other’s work, merges and writes again.

A device on an older version of ZestSSH refuses data written by a newer one, rather than writing it back without the parts it does not know, and asks you to update the app.

With Juiced, ZestSSH Cloud syncs your vault on up to 7 devices. A member of a paid team (Team or Business) has no limit. Storage you run yourself has no limit at all.

The first seven devices you signed in on keep syncing. A device you signed out no longer counts, and neither does a computer whose sign-in ran out (30 days after it was last renewed).

When an eighth device tries to sync:

  1. Sync pauses on that device. Nothing on it is changed or lost.
  2. ZestSSH says “ZestSSH Cloud syncs up to 7 devices for one person, and this one would be more.” with Sign out a device.
  3. Sign out a device opens Make room for this device, a list of your other signed-in devices, each with when it signed in and Sign out.
  4. Choose Sign out on one you no longer use, and confirm Sign out this device? ZestSSH may ask you to sign in again first.
  5. Sync goes on, on this device, at once.

The device you signed out keeps its hosts and keys, and its sync key, set aside for your account. It stops syncing until it signs in again, and then goes on with no question. You can also sign devices out from the Devices section of the Account page. See Signed-in devices.

With your recovery key: on a device that joins sync, under Lost the password, choose Use recovery key, type it, and choose a new sync password. Your data comes back, and the data key is wrapped under the new password. On the Account page, under Security, the Recovery key row can make a new key (Replace or Make one) and Check the one you have. See Recovery key and recovery kit.

Without it: nobody, ZestSSH included, can open your synced data. Your devices still have their own copies. On ZestSSH Cloud, Reset cloud sync in the Danger zone of the Account page takes the cloud copy out of use so that you can set sync up again with a new sync password:

  • the data on your devices stays, and your account, purchases and teams are not touched,
  • sync turns off on that device, and your other devices stop syncing until they join with the new sync password,
  • you type your email address and sign in again first,
  • ZestSSH Cloud sets the old copy aside for 30 days, then deletes it. To have it put back before then, contact support.

Reset cloud sync is not offered for storage you run yourself: there, delete the sync file yourself if you want to start over.

Delete account in the Danger zone deletes your account and the data synced to ZestSSH Cloud. You type your email address and sign in again first, and you give the sync password where ZestSSH Cloud holds synced data. If you sync to storage of your own, ZestSSH deletes its sync file too and checks that it is gone. At the end, you choose whether to delete everything on this device as well. See Account and purchases.

What you see What to do
“ZestSSH Cloud storage comes with Juiced, which this account does not have.” Buy Juiced, or switch to WebDAV, S3 or Google Drive, which are free.
“ZestSSH Cloud syncs up to 7 devices for one person” Choose Sign out a device (see above).
“This device’s clock looks wrong” Set the date and time right. A wrong clock can make sync keep the wrong copy of an item changed on two devices.
Sync refuses an http:// address Use https://, or an address on your own network (see Plain http).
Lost both the sync password and the recovery key See When you lose the sync password.

For more, see Sync not working.