Security basics
ZestSSH is an SSH client: it holds private keys, passwords and the way into your servers. This page covers the protections built into the app and how to set them up. All of them are free.
App lock (PIN)
Section titled “App lock (PIN)”The app lock asks for a PIN every time ZestSSH opens. Open Settings > Security and privacy and turn on App lock, then choose a PIN of 4 to 32 digits and type it again to confirm. Change PIN is in the same place.
How the PIN is stored
Section titled “How the PIN is stored”ZestSSH never stores your PIN in plain text. With Encrypt data at rest off, it keeps an Argon2id hash of the PIN in your system’s secure storage, as base64(salt):base64(hash), made with:
- Memory: 4 MB
- Iterations: 4
- Parallelism: 2
- Hash length: 32 bytes
- Salt: 16 random bytes for each PIN
With Encrypt data at rest on, no hash of the PIN is kept at all: the PIN is checked by opening the encrypted vault itself (see Data-at-rest encryption), which costs a guesser far more.
Brute-force protection
Section titled “Brute-force protection”After 10 wrong PINs in a row, ZestSSH makes you wait before the next try:
| Failed attempts | Wait |
|---|---|
| 10 | 30 seconds |
| 15 | 60 seconds |
| 20 or more | 5 minutes |
The count and the wait are kept in secure storage, so restarting the app does not reset them. Only a correct PIN resets the count. The PIN check compares in constant time, so its timing gives nothing away.
A PIN set in an old version of ZestSSH (an unsalted SHA-256 hash) is moved to Argon2id the next time you unlock. You do not need to do anything.
Face or fingerprint unlock
Section titled “Face or fingerprint unlock”When you set the PIN, you can also turn on face or fingerprint unlock where the device has it: Also enable face or fingerprint on a phone, Also enable Windows Hello on Windows, Also enable Touch ID on a Mac. It is an extra way to unlock on top of the PIN; there is no lock with a face or fingerprint alone, and the PIN always works.
ZestSSH asks the system to check you and only gets a yes or no back. Your fingerprint or face never reaches the app.
With Encrypt data at rest on, only the PIN unlocks: face or fingerprint unlock is skipped, because the PIN is what opens your data.
When the app locks
Section titled “When the app locks”- Auto-lock (Settings > Security and privacy): how long after you leave the app it locks again: Immediately, after 1, 5, 10, 15 or 30 minutes, or Never.
- Lock when idle: also lock after a time without a key press or click (5, 10, 15, 30 or 60 minutes, or Off), even while ZestSSH is in front.
A zestssh:// link opened while the app is locked waits until you unlock it.
Data-at-rest encryption
Section titled “Data-at-rest encryption”Your local database is always encrypted with SQLCipher (AES-256), and its key lives in your system’s secure storage. That protects the data at rest, but on a computer the key can be read by anything that runs as your user account.
Turn on Settings > Security and privacy > Encrypt data at rest to raise the bar: your PIN becomes the only way in. The database key is then wrapped behind your PIN, the plain key is removed from secure storage, and the database is closed whenever the app locks. The secrets ZestSSH keeps in secure storage are sealed too, so they open only after the PIN: private keys, passwords, passphrases, certificates and sync’s key, and also the automatic backups’ password, the passwords of WebDAV places backups are copied to, the key saved session recordings are encrypted with, a computer’s Google Drive sign-in, the monitoring server’s sign-in, and a team’s device key and event export settings. Turning Encrypt data at rest off unseals them again. The wrapping derives a key from your PIN with Argon2id (4 MB on a phone, 64 MB on a computer) and encrypts with AES-256-GCM.
Because the PIN is the only key, there is no recovery if you forget it: restore a .zest backup or sync onto a fresh install, or the local data is gone. Make a backup before you turn it on. While encryption is on, you cannot turn the app lock off.
Hardware-backed encryption
Section titled “Hardware-backed encryption”On top of at-rest encryption, you can bind the key to your device’s secure hardware, so that a copied database is useless on any other machine. Turn on Settings > Security and privacy > Hardware-backed encryption.
- Android, iPhone and iPad: a key held in the Android Keystore or the iOS Secure Enclave, released only after the device checks you, wraps the database key. Unlocking then takes your PIN plus that device check.
- Windows: a key that cannot be exported, inside the TPM, seals the wrapping key, so the data cannot be decrypted on another computer even with the files.
macOS and Linux have no hardware-binding option; use full-disk encryption there.
If the device’s secure hardware is reset (the screen lock removed, the device reset, or the TPM cleared), the hardware-bound data cannot be opened, so keep a backup or sync.
Host key verification (TOFU)
Section titled “Host key verification (TOFU)”ZestSSH uses trust on first use (TOFU) for host keys. The first time you connect to a server, it shows the host and the fingerprint of its host key and asks whether to trust it. That question is on unless you turn it off in Settings > Security and privacy: on a computer, Unknown host keys set to Trust on first use instead of Ask before trusting; on a phone, the Ask before trusting new keys switch. With it off, a new host’s key is trusted and you are told. A changed key always stops the connection.
A trusted key is saved with:
- The host address and port.
- The key type (for example
ssh-ed25519,ssh-rsa). - The SHA-256 fingerprint.
- When it was first and last seen, and which device recorded it.
You can see and remove them under Trusted host keys in Settings > Security and privacy.
Key change detection
Section titled “Key change detection”On later connections, ZestSSH compares the server’s key with the saved one. If it changed, the connection stops at Host key changed until you decide. This can mean the server was rebuilt, or that someone is intercepting the connection.
A change of key type counts too: if a server used ssh-rsa and now shows ssh-ed25519, that is a changed key, so an attacker cannot get past the check with a different algorithm.
Best practice
Section titled “Best practice”Check host key fingerprints another way (your hosting provider’s dashboard, or a console on the server) before you trust them. Trust on first use is only as strong as that first connection. See Host key verification.
Encrypted backups
Section titled “Encrypted backups”ZestSSH writes backups as .zest files.
Encryption
Section titled “Encryption”A backup is encrypted with AES-256-GCM, with a key derived from your backup password by Argon2id. You type the password twice, and it must be at least 12 characters. You can also leave the password empty: the app then warns you, and you must tick a box to confirm before it writes an unencrypted backup (for a file you keep somewhere already encrypted, or feed to your own tools). An unencrypted backup holds your SSH credentials and private keys in plain text, so protect it.
What is in a backup
Section titled “What is in a backup”- Your hosts and their groups and tags, and the other keys each host can sign in with.
- Your keys and saved passwords, with their passphrases and certificates.
- Trusted host keys.
- Snippets and their categories.
- Port forwards, alerts and command history.
- Networks and their settings for each host and port forward.
- Your synced settings.
- Records of what you deleted (a restore does not apply them: see below).
Restoring a backup
Section titled “Restoring a backup”- Computer: Settings > Backups and data, then under Data, Import….
- Phone: Settings > Backups and data > Import data > Restore from backup (.zest).
Pick the .zest file and type its password. Before anything is written, ZestSSH shows what the backup holds, what it replaces here, and each host that does something by itself (runs a command or snippet as it connects, forwards your SSH agent, or connects in the background). Cancel writes nothing. A wrong password changes nothing.
Trusted host keys from a backup are taken only when they name the device that recorded them and an earlier date; the first connection then tells you where the key came from. A key that disagrees with one this device trusts is never taken.
Restoring deletes nothing, but can roll back. An item in the backup replaces the same item here, so an older backup can bring back older copies of items you changed since. Nothing here is removed, and an item deleted here since the backup was made comes back. Read the preview, especially when restoring an older backup onto a device with newer data. See Encrypted backups.
Sync and its threat model
Section titled “Sync and its threat model”Sync keeps your data the same across your devices. It is free on every plan with storage you run yourself (WebDAV, S3-compatible storage or Google Drive); Juiced adds the hosted ZestSSH Cloud storage. The full model is in End-to-end encryption; the key points:
- Your data is encrypted on your device before it leaves it. The storage can see when a device last synced and what kind of device it was, and nothing of what is inside.
- Encryption is AES-256-GCM, with a key derived from your sync password by Argon2id.
- The storage never sees your passwords, keys or host details in the clear.
- ZestSSH Cloud needs a ZestSSH account (Google, Apple on Apple’s devices, or an email and a password); your own storage needs no account.
- Change sync password re-wraps only the data key, not every item.
The storage cannot decrypt your data. If you forget your sync password, use your recovery key (see Recovery key and recovery kit). A new device can also be approved from one you already use, after you compare three pairing words on both screens, without typing the sync password there. If you lose both the password and the recovery key, nobody can recover your synced data, including us.