Skip to content

Password authentication

Password authentication is the simplest way to sign in to an SSH server. In ZestSSH a saved password is a key of its own on the Keys page: you give it a name and a username, and every host that uses it signs in with it. The password itself is kept in your device’s secure storage, not in the app’s database.

Platform Status
Android Full support
iOS Full support
Windows Full support
macOS Full support
Linux Full support
  1. Open Keys in the sidebar.
  2. Choose New key, then New saved password.
  3. Fill in Display name (for example web-01 login), Username and Password.
  4. Choose Save.
  5. Open the host, pick the new entry in its Key field, and save the host.
  1. Open More, then Keys, and tap +.
  2. Fill in Display name and Username, and choose Password.
  3. Type the password and tap Save key.
  4. Pick it in the host’s Key field.

Connect to a saved host that has no key, and ZestSSH asks for the password in an Enter password dialog with user@host on it. Tick Save this password to keep it: ZestSSH makes a key named user@host with that password and sets it on the host, so the next connection does not ask. A host you open with Quick connect is not saved, so its prompt has no Save this password box.

  1. When a connection starts, ZestSSH reads the host’s key and its password from secure storage.
  2. ZestSSH first asks the server which ways of signing in it takes, and sends the password only to a server that takes passwords.
  3. If the server asks its questions instead (keyboard-interactive), ZestSSH answers a real password prompt with your saved password, once, and shows you any other question, such as a one-time code. See Keyboard-interactive.
  4. If the server refuses the sign-in, ZestSSH says what was refused and what the server takes.

If the host’s key is a password key with no password in it, ZestSSH shows the Enter password dialog. Tick Save this password to save what you type into that key.

The dialog shows over whatever screen is open, on a phone and on a computer. While the app is locked it waits, and it appears once you unlock. If nobody answers within two minutes, the connection stops. Two connections that need a password at the same time ask one after the other.

A key can also hold a password: the field Password, tried after the key in the key’s editor. ZestSSH sends it only to a server that does not take the key and asks for a password. Leave it empty and only the key is used. See Public key authentication.

On Windows, macOS and Linux a key can keep its password in 1Password, Bitwarden or KeePassXC instead of in ZestSSH: choose Password manager as the key’s type. ZestSSH fetches the password each time it connects and never keeps it. On a saved password, Move to a password manager (in its details on the Keys page) moves it there, and the Saved passwords line of the Keys page has From a password manager (also in New key as Add from a password manager). Where a tool is needed and not found, ZestSSH says so right there and helps you set it up; the tools’ settings are also under Settings > Security and privacy > Password managers. See Password managers for the details, including what a phone does with such a key.

Saved passwords are never written to the app’s database or to plain files. ZestSSH keeps them in the system’s secure storage:

Platform Where the password is kept
Android Encrypted shared preferences, protected by the Android Keystore
iOS iOS Keychain, readable after the first unlock, on this device only
Windows A file encrypted with Windows DPAPI for your Windows account
macOS macOS Keychain
Linux The Secret Service (libsecret), such as GNOME Keyring or KDE Wallet

With Encrypt data at rest on (Settings > Security and privacy), saved passwords are also sealed with a key that opens only after your PIN.

A saved password goes with its key to your other devices through sync, end-to-end encrypted, and into your encrypted backups. See Cloud sync and Encrypted backups.

A scheduled task or another automation that runs by itself never shows a password prompt. It signs in only with what is saved, and only with keys switched to Allow unattended runs. If a password would have to be typed, the run stops instead of asking.

  • Password sign-in is weaker than key sign-in. If your server allows it, switch to public key authentication.
  • The password travels inside the encrypted SSH connection, but the server receives it as you typed it. A compromised server can capture it.
  • A host that only takes keys is never sent your saved password.
  • If the system’s secure storage cannot be read, ZestSSH asks for the password with the note “The saved password could not be read on this device, so it is asked for here.”
  • The server must allow password sign-in (PasswordAuthentication yes in sshd_config). Many hardened servers turn it off.
  • ZestSSH does not rotate or expire saved passwords.

“Authentication failed” with a correct password

Section titled ““Authentication failed” with a correct password”
  • Check that the server allows password sign-in in its sshd_config.
  • A server that uses PAM may ask for the password as a keyboard-interactive question. ZestSSH answers a real password prompt with the saved password and shows you any other question.
  • Check the saved password for spaces at the start or end.
  • If the app is locked, unlock it: the prompt waits for that.
  • The connection stops after two minutes without an answer. Connect again.
  • A run with nobody there (a scheduled task, an automation) never asks.

“The saved password could not be read on this device”

Section titled ““The saved password could not be read on this device””
  • The system’s secure storage did not hand over the password, so ZestSSH asks for it this time. Tick Save this password to save it again.
  • On Linux, make sure GNOME Keyring or another Secret Service is running.

Q: Is my password stored in plain text? A: No. It is kept in the system’s secure storage, which encrypts it, and never in the app’s database or its logs. It is written to a file as plain text only if you ask for it: an export without a password. A session log or transcript you save as plain text keeps what the terminal showed.

Q: Can I see my saved password? A: No. You can replace it or delete it in the key’s editor.

Q: What happens if I enter the wrong password? A: The server refuses the sign-in, and ZestSSH shows Incorrect password with the host that rejected it. Connect again to retry.