File formats
ZestSSH reads and writes several kinds of files for backups, sharing hosts, themes and keys.
.zest (encrypted backup)
Section titled “.zest (encrypted backup)”Extension: .zest
Purpose: a full encrypted backup of your ZestSSH data.
Created by: on a computer, Settings > Backups and data, then Data > Export. On a phone, the same Export on the account page, or Settings > Backups and data > Export data > Full backup (.zest). Automatic backups are set under Automatic backups (daily, weekly or off), beside Export.
The backup password must be at least 12 characters and is typed twice. Empty fields are too short. No password in the export dialog writes the file without one: it says “Not recommended: the file will hold your SSH keys and passwords in a form anyone who gets it can read.” and exports only after you tick “I understand, export without a password”. Such a file is a version 2 backup, below. Automatic backups always use a password.
Structure
Section titled “Structure”Offset Length Content0 4 Magic bytes: "ZEST" (ASCII)4 1 Version byte5+ var PayloadVersion 3 (current, encrypted)
Section titled “Version 3 (current, encrypted)”Payload layout: header_length(2) + argon2_params_header(JSON) + salt(32) + IV(12) + gcm_tag(16) + ciphertext. The header records the Argon2 parameters the backup was written with, so it still opens after the app’s default parameters change.
Encryption: AES-256-GCM, with a 256-bit key derived from the backup password with Argon2id (the same parameters as sync).
What it holds: what sync carries: hosts, keys and passwords (with each key’s passphrase and certificate), groups and tags, a host’s other accounts, known host keys, snippets and snippet categories, port forwards, triggers, command history, networks and their per-host and per-forward overrides, synced settings, deletion records, and your account keys. It holds no team data and no workflows.
Restoring: Import beside Export, or Settings > Backups and data > Import data > Restore from backup (.zest) on a phone. Before anything is written, the app says what the backup holds, what it replaces here, and each host that does something by itself (runs a command or a snippet as it connects, forwards your SSH agent, or is connected to in the background). Cancel writes nothing.
Importing adds and writes over, and deletes nothing: records already here (matched by id) are updated and new ones are added, while the backup’s deletion records are not applied. A record in the backup that was deleted here since comes back, and the next sync does not delete it again. Importing an older backup can therefore roll back newer local data, though it removes none.
Known host keys: restored under a strict rule. A key that agrees with this device’s is kept. A key that differs never overwrites this device’s and is reported as a changed key. A host this device does not know is adopted only when the backup says which device recorded it, with a first-seen date before the restore, and it is marked as not yet checked on this device.
Version 1 (older, encrypted)
Section titled “Version 1 (older, encrypted)”Older builds wrote encrypted backups with version byte 1 and no Argon2 header: salt(32) + IV(12) + gcm_tag(16) + ciphertext. The app still reads them: it tries the current default Argon2id parameters and then the older ones.
Version 2 (not encrypted)
Section titled “Version 2 (not encrypted)”A backup exported without a password has version byte 2: the JSON follows the header with no encryption. Older builds wrote these too. Before importing one, the app asks “Import a backup with no password?” (“Nothing proves who made this file or that it was not changed. Import it only if you made it yourself and it has stayed in your hands.”) and imports it only after you tick “I understand, import it”.
File size limit
Section titled “File size limit”Backup files larger than 50 MB are refused: “Backup file is too large (max 50 MB)”.
Where backups are saved
Section titled “Where backups are saved”- Android: the Download folder where Android lets the app write there; otherwise the app’s own folder (Android 8 to 10).
- iOS: the app’s Documents folder, which you can reach in the Files app.
- Windows, macOS and Linux: backups you export go to
Documents/ZestSSH/backups/. Automatic backups go toZestSSH/backups/in the app’s private support folder, not to Documents.
Automatic backups are named zestssh_auto_ followed by the date and time; backups you export are named zestssh_backup_ followed by the date and time.
.zest (shared host)
Section titled “.zest (shared host)”A single host can be shared as a .zest file too. It is a small JSON file, not a backup:
{"version": 1, "type": "zestssh_connection", ...}for a host shared without secrets."type": "zestssh_connection_encrypted"for a host shared with its password, its private key or both. It is sealed with AES-256-GCM under a password you choose, of at least 12 characters, with the key derived by PBKDF2-HMAC-SHA256 at 600,000 iterations (files from older builds used 100,000, and still open).
A shared host file is at most 1 MB and carries at most 50 port forwards. The app tells it apart from a backup by its content.
.zestheme (theme)
Section titled “.zestheme (theme)”Extension: .zestheme
Format: JSON with name, type and colors.
"type": "terminal"is a terminal color scheme. Itscolorsobject has 20 keys:background,foreground,cursor,selection, and the 16 ANSI colors (black,red,green,yellow,blue,magenta,cyan,white,brightBlack,brightRed,brightGreen,brightYellow,brightBlue,brightMagenta,brightCyan,brightWhite), each as a six-digit hex color. A phone’s Settings > Appearance exports the terminal theme in use this way."type": "app"is an app theme, written by the theme designer with"app": "ZestSSH"and"version": 1.
On a phone, the Appearance import takes either type. On a computer, the theme designer imports app themes. Importing a theme file needs Squeezed, and the theme designer refuses a file larger than 1 MB. See Custom theme import.
CSV host list (import)
Section titled “CSV host list (import)”A CSV file whose first line names its columns, one host per line. Columns are matched by name in any order, ignoring case, spaces, dashes and underscores:
| Column | Names it goes by |
|---|---|
| Name | name, label, title, alias, hostname alias, display name |
| Address (required) | host, hostname, address, ip, ip address, server, host address |
| Port | port, ssh port |
| User | user, username, user name, login |
| Group | group, groups, folder, group name |
| Tags | tags, tag, labels |
| Key | key, identity, ssh key, key name, key label |
| Protocol | protocol, type (ssh, sftp, mosh, et or telnet) |
| Note | note, notes, description, comment, comments |
Other columns are left out, and the app says so. A file can be up to 5 MB and up to 5,000 hosts. Each line is checked and shown before anything is saved; a line with no host, an address that is not one, a port outside 1 to 65535 or another protocol is not imported, with the reason. See Importing from other apps.
PuTTY .ppk (import only)
Section titled “PuTTY .ppk (import only)”Extension: .ppk
Purpose: PuTTY’s private key format. ZestSSH reads .ppk files and converts the key to OpenSSH format.
Supported versions
Section titled “Supported versions”- PPK v2: an encrypted key’s passphrase is turned into the key with SHA-1.
- PPK v3: an encrypted key’s passphrase is turned into the key with Argon2 (Argon2id, Argon2i or Argon2d, as the file says).
Encrypted keys use AES-256-CBC in both versions.
Supported key types
Section titled “Supported key types”Only ssh-rsa and ssh-ed25519 keys are read from a .ppk file. A .ppk holding an ECDSA or DSA key is refused: “This kind of key is not supported.”
Import process
Section titled “Import process”- ZestSSH reads the
.ppkfile. - If it is encrypted, the app asks for the passphrase.
- The key is checked against the file’s MAC and converted to OpenSSH format.
- The key is saved with your other keys in ZestSSH.
The original .ppk file is not changed.
OpenSSH key formats (import)
Section titled “OpenSSH key formats (import)”ZestSSH reads these private key formats:
OpenSSH format
Section titled “OpenSSH format”-----BEGIN OPENSSH PRIVATE KEY-----base64-encoded data-----END OPENSSH PRIVATE KEY-----The default format of ssh-keygen since OpenSSH 7.8. ZestSSH reads Ed25519, RSA, ECDSA (P-256, P-384 and P-521) and Ed448 keys in it. An encrypted key must use the bcrypt KDF, as ssh-keygen writes it.
PEM: RSA and EC
Section titled “PEM: RSA and EC”-----BEGIN RSA PRIVATE KEY-----base64-encoded data-----END RSA PRIVATE KEY----------BEGIN EC PRIVATE KEY-----base64-encoded data-----END EC PRIVATE KEY-----The older formats for RSA and ECDSA keys. A passphrase-protected RSA key has Proc-Type: 4,ENCRYPTED and DEK-Info headers; ZestSSH reads those encrypted with AES-128, AES-192 or AES-256, in CBC or CTR mode. An EC PRIVATE KEY is read only without a passphrase: to import an encrypted one, convert it to OpenSSH format first (for example with ssh-keygen -p -f yourkey).
Not read
Section titled “Not read”- PKCS#8 (
BEGIN PRIVATE KEYandBEGIN ENCRYPTED PRIVATE KEY). Convert the key to OpenSSH format first, for example withssh-keygen -p -f yourkey. - DSA keys, in any format.
SSH config (import)
Section titled “SSH config (import)”File: ~/.ssh/config, or any text file in SSH config format.
Purpose: add many hosts at once.
ZestSSH reads these directives:
| Directive | Becomes |
|---|---|
Host |
The host’s nickname (one host per name on the line) |
HostName |
The host’s address (the name itself when there is none) |
Port |
The port (22 when there is none) |
User |
The user, on a key entry named after the host |
IdentityFile |
Noted with the host; on a computer you can choose to copy the key file into the vault |
ProxyJump |
The host’s jump host, when that host is imported too or already saved |
A Host line made only of patterns (Host *, Host prod-*) is skipped, as is a host with an invalid address or a port outside 1 to 65535; on a computer the import lists each skipped entry with the reason. A user name has control characters taken out and is cut at 256 characters. An IdentityFile path that contains .. is left out, and the host is imported without it.
On a computer, when the config names key files, the import offers to copy them into the vault. That offer starts unticked: a private key is copied only if you tick it. See Importing from other apps.
Limitations
Section titled “Limitations”Matchblocks are not read.Includelines are not followed.LocalForward,RemoteForwardand other directives are not read.
Files ZestSSH writes
Section titled “Files ZestSSH writes”| File | Where |
|---|---|
| Recovery kit | ZestSSH-Recovery-Kit.txt, saved where you choose. See Recovery kit. |
| Session transcripts | .zesttx (encrypted) or .txt, in ZestSSH/transcripts under the app’s Documents folder unless you choose another place. See Session transcripts. |
| Session logs | .log files, in ZestSSH/session-logs under the app’s Documents folder unless you set another folder. See Session logs. |
| Snippets export | zestssh_snippets.json. |
| Exported keys | OpenSSH key files named after the key and its type, such as web-01_ed25519 and web-01_ed25519.pub, handed to the share sheet so you choose where they go. A private key written with a new passphrase, or none, is in OpenSSH format. See Key management. |