App lock
The app lock asks for a PIN before ZestSSH opens, and again after a while away from it. It is free, on every plan, on phones and computers. The PIN is always the lock: Face ID, a fingerprint, Touch ID or Windows Hello can be added on top of it as a faster way past it (see Unlock with face or fingerprint).
Turn it on
Section titled “Turn it on”- Open the setting:
- On a computer: Settings > Security and privacy, under App lock, turn on App lock.
- On a phone: More > Settings > Security and privacy, under App lock, turn on App lock.
- Set up PIN opens. In Choose a PIN, type a PIN of 4 to 32 digits and choose Next.
- If the device offers face or fingerprint unlock, a switch reads Also enable face or fingerprint (on a phone), Also enable Windows Hello (on Windows) or Also enable Touch ID (on a Mac). It is on by default. Turn it off for a PIN-only lock. With Encrypt data at rest on, there is no switch: the step says that only your PIN opens the encrypted data.
- In Confirm your PIN, type the same PIN again and choose Confirm & enable.
The lock is on as soon as you see “PIN set successfully!”.
The app lock is off until you turn it on. ZestSSH offers it once on each device, after you save your first private key or password:
- On a phone: Lock ZestSSH on this phone? “Your keys and passwords stay behind a PIN, your fingerprint or your face if someone else picks up your phone. You can change this in Settings under Security.” (ZestSSH 3.3.0 and newer.)
- On a computer (from 4.0): Lock ZestSSH on this computer? “Your keys and passwords stay behind a PIN, or Windows Hello where it is set up, if someone else uses this computer. You can change this in Settings under Security.” A Mac names Touch ID; on Linux it names the PIN alone. It comes after a save in the host editor, the key editor or the Keys page.
Turn on goes to the steps above. Not now (or Esc) is your answer for good: the offer does not come again on that device.
A PIN that is easy to guess is refused: “That PIN is too easy to guess. Avoid repeats (1111) and runs (1234).” That is every PIN of one repeated digit, and every run of digits going up or down by one, such as 1234 or 98765.
When it locks
Section titled “When it locks”Auto-lock locks the app after a while away from it: on a phone, while ZestSSH is in the background; on a computer, while its window is minimized or another window is in front. Choose Immediately, 1, 5, 10, 15 or 30 minutes, or Never. The default is 1 minute on a phone and 10 minutes on a computer.
Lock when idle also locks after a while without a key press or click, even while ZestSSH is in front: Off (the default), 5, 10, 15, 30 or 60 minutes. A team you are in can ask for a limit; the setting then says “A team you are in asks for” that many minutes at most, and the shorter of the two applies.
On a computer, a key press or click anywhere on the computer counts, so working in another app beside ZestSSH does not lock it (ZestSSH 3.3.0 and newer). On Linux this needs GNOME; on other desktops, and wherever the computer does not say, only a key press or click in ZestSSH counts.
Lock when the computer locks (on a computer) also locks ZestSSH when the computer locks or sleeps. It is on by default, from ZestSSH 3.3.0.
These are under App lock on the Security and privacy page, shown while the app lock is on.
Lock ZestSSH locks it now. On a computer, press Ctrl+Shift+L (Control+Shift+L on a Mac too), from anywhere in the app, a terminal, Settings or a dialog included (but not while a remote screen has the keyboard: it takes every key), or choose Lock ZestSSH in the command palette. The key works while the app lock is on, and can be changed in Settings > Keyboard and mouse. Ctrl+L alone stays the terminal’s: it clears the screen.
The lock screen
Section titled “The lock screen”The lock screen shows the ZestSSH mark, “ZestSSH is locked”, and under it why it locked:
| It says | Because |
|---|---|
| Locked since ZestSSH started | The app lock asks at every start. |
| Locked by you | You chose Lock ZestSSH. |
| Locked after 5 minutes idle | Lock when idle. |
| Locked after 10 minutes away, or Locked when you left ZestSSH | Auto-lock (the second is Immediately). |
| Locked when the computer went to sleep, or Locked when the computer locked | Lock when the computer locks. |
Nothing of the app is drawn behind the lock screen until the PIN or your face or fingerprint is checked. Then the screen splits open onto the app in under half a second; any key or click skips it, and with the system’s reduce motion setting on it is a short fade. Lock ZestSSH plays it the other way. A lock that comes by itself (idle, the computer, coming back from the background, the start) shuts at once.
Open sessions on ZestSSH’s lock screen (in Security and privacy) says what the lock screen shows of the sessions still connected behind it: Nothing (the default), How many (a line such as “2 sessions still connected”), or How many and their names (the count, then the first three sessions’ names and how many more, such as “web-01, db-primary, grafana-box and 2 more”). Names are masked as recording mode masks a host’s name while it is on, but otherwise anyone who sees the screen can read them. It is set for this device. New in 4.0.1; in 4.0 it was a switch that showed the count.
While the app lock is on, the home screen widget on Android, iPhone and iPad lists no host: it says “App lock is on” until you turn the lock off (ZestSSH 4.0 and newer).
Unlock
Section titled “Unlock”On a computer: type your PIN in the box and press Enter, or choose the arrow inside the box. A digit typed anywhere goes into the box, and Esc clears it. If the number pad types nothing because Num Lock is off, the lock screen says so. With Windows Hello or Touch ID added, a button Unlock with Windows Hello (or Touch ID) stands beside the box, with the key Ctrl+U (Cmd+U on a Mac). It never opens by itself: you choose it. Linux has no system unlock, so none is shown.
On a phone or tablet: the lock screen has its own number pad (1 to 9, 0 and delete), so the system keyboard does not slide up. Face ID or the fingerprint prompt opens by itself as the lock comes up, and a key on the pad (for example Use Face ID) asks again. A keyboard attached to a tablet types into the pad.
The PIN box is always there beside face or fingerprint unlock: there is no Use PIN instead step any more. See Unlock with face or fingerprint.
With Encrypt data at rest on, the lock screen offers no face or fingerprint unlock and says why: “Your data is encrypted with your PIN, so only your PIN can open it.”
A screen reader is told “ZestSSH is locked. Enter your PIN.” as the lock comes up, then each wrong PIN, the wait and its end, and “Unlocked”.
The lock screen has no way past a forgotten PIN. With Encrypt data at rest on, the data on the device cannot be opened without it at all. Keep a backup or use sync, so you can bring your data back on a fresh install.
On a computer the lock screen keeps the window’s controls, so you can move, minimize or close ZestSSH without unlocking it. Closing asks for no PIN: if sessions are open, ZestSSH asks whether to close them, as it does when unlocked.
Wrong PINs
Section titled “Wrong PINs”A wrong PIN shakes the box (not with reduce motion on), buzzes a phone, and says how many wrong PINs are left before a wait, for example “Wrong PIN. 9 tries left before a 30 second wait.” After 10 wrong PINs in a row, entering a PIN is paused, and the line counts down: “Too many wrong PINs. Try again in 30 seconds.” Face or fingerprint unlock stays allowed during the wait. Once it is over, the line says that the next wrong PIN starts another wait, and how long.
| Wrong PINs in a row | Each wrong PIN pauses entry for |
|---|---|
| 10 to 14 | 30 seconds |
| 15 to 19 | 60 seconds |
| 20 or more | 5 minutes |
While entry is paused, every PIN is refused without being checked. The count goes down only with the right PIN: a pause running out does not reset it. The count and the pause are kept in the system’s secure storage, so restarting the app does not end a pause.
The same count covers every place that asks for your PIN: the lock screen, changing the PIN, and turning the lock or encryption off.
How the PIN is stored
Section titled “How the PIN is stored”ZestSSH never stores your PIN.
- With Encrypt data at rest off, it keeps a hash of the PIN in the system’s secure storage: Argon2id over the PIN with a random 16-byte salt, 4 MiB of memory, 4 passes, 2 lanes and a 32-byte result. A PIN you type is hashed the same way and compared in constant time, so the time taken does not tell how much of it was right.
- With Encrypt data at rest on, no hash is kept at all. Your PIN is checked by opening the vault that holds the database’s key, which costs 64 MiB of Argon2id per guess on a computer. See Data at rest.
Change the PIN
Section titled “Change the PIN”Choose Change PIN (“Requires your current PIN”; on a computer, Change). Enter the PIN you use now in Confirm your current PIN, then choose and confirm the new one. You can add or remove face or fingerprint unlock on the same steps, except while Encrypt data at rest is on. With Encrypt data at rest on, the vault is moved to the new PIN at the same time.
Turn it off
Section titled “Turn it off”Turn App lock off and enter your PIN in Turn off app lock?: “The app will open without a PIN.” A wrong PIN leaves it on: “App lock unchanged: wrong PIN”.
Turning the lock off forgets the PIN, the face or fingerprint choice and both lock timers, so turning it on again later is a fresh setup.
While Encrypt data at rest is on, the app lock cannot be turned off: “Turn off “Encrypt data at rest” first to remove the lock”.
Next steps
Section titled “Next steps”- Unlock with face or fingerprint: Face ID, fingerprint, Touch ID or Windows Hello on top of the PIN.
- Data at rest: put your data itself behind the PIN.