Skip to content

Supported key types

This page lists the key types ZestSSH can use to sign you in to a server (user keys), and the host key types it accepts from servers.

  • On a computer: open Keys in the side rail, click New key, then Generate SSH key (Ed25519), Generate SSH key (ECDSA) or Generate SSH key (RSA-4096). The Generate SSH key dialog opens with that type chosen; under Key type and Key strength you can still pick any type and size below.
  • On a phone: open More > Keys, tap +, then Generate new key. The Generate tab offers the same types and sizes.
Key type Sizes you can generate
Ed25519 256 bits (fixed)
RSA 2048 bits, 4096 bits
ECDSA P-256, P-384, P-521 (NIST curves)

RSA and ECDSA keys are generated in the background, so the app stays responsive while a large RSA key is made.

Property Value
Algorithm EdDSA on Curve25519
SSH name ssh-ed25519
Key size 256 bits (fixed)

The generator marks Ed25519 as recommended. Prefer it whenever the server supports it.

Property Value
Algorithm RSA
SSH key name ssh-rsa
Signature names rsa-sha2-512, rsa-sha2-256, and ssh-rsa (SHA-1) in Compatibility mode only
Sizes generated 2048, 4096 bits

How an RSA key signs: ZestSSH signs with rsa-sha2-512 or rsa-sha2-256 (RFC 8332), the first of the two that the server says it takes. It signs with SHA-1 (ssh-rsa) only when the host has Compatibility mode turned on, and then still after the two SHA-2 kinds. If a server takes an RSA key only with SHA-1 and Compatibility mode is off, the key is not offered to it, and the error says so and where to turn the mode on.

Curve SSH name
P-256 ecdsa-sha2-nistp256
P-384 ecdsa-sha2-nistp384
P-521 ecdsa-sha2-nistp521
Property Value
Algorithm EdDSA on Curve448
SSH name ssh-ed448

The SSH engine can read an ssh-ed448 key in OpenSSH format and sign in with it. ZestSSH does not generate Ed448 keys.

Curve SSH name
Ed25519 sk-ssh-ed25519@openssh.com
ECDSA P-256 sk-ecdsa-sha2-nistp256@openssh.com

These keys live on the security key. On an Android phone or an iPhone, ZestSSH makes one on the security key from the key editor (On a security key), or takes the id_ed25519_sk or id_ecdsa_sk file that ssh-keygen -t ed25519-sk or -t ecdsa-sk made, and signs with the security key held to the phone or plugged in (4.0). On a computer, add them to your ssh-agent and attach them as a key in ZestSSH from the agent. See FIDO2 hardware keys and SSH agent forwarding.

A key can carry an OpenSSH user certificate. ZestSSH reads these certificate types:

  • ssh-ed25519-cert-v01@openssh.com
  • rsa-sha2-512-cert-v01@openssh.com, rsa-sha2-256-cert-v01@openssh.com, ssh-rsa-cert-v01@openssh.com
  • ecdsa-sha2-nistp256-cert-v01@openssh.com, ecdsa-sha2-nistp384-cert-v01@openssh.com, ecdsa-sha2-nistp521-cert-v01@openssh.com
  • sk-ssh-ed25519-cert-v01@openssh.com, sk-ecdsa-sha2-nistp256-cert-v01@openssh.com

See OpenSSH certificates. In a team, members can sign in with short-lived certificates from the team’s own authority: see Certificate authority.

ZestSSH accepts these host key types, in this order of preference. ssh-rsa (an RSA host key signing with SHA-1) is added only when the host has Compatibility mode turned on.

SSH name Algorithm Offered
ssh-ed25519 Ed25519 By default
rsa-sha2-512 RSA with SHA-512 signatures By default
rsa-sha2-256 RSA with SHA-256 signatures By default
ssh-rsa RSA with SHA-1 signatures (legacy) Compatibility mode only
ecdsa-sha2-nistp521 ECDSA P-521 By default
ecdsa-sha2-nistp384 ECDSA P-384 By default
ecdsa-sha2-nistp256 ECDSA P-256 By default

Ed448 (ssh-ed448) is implemented in the engine but is not offered as a host key type, so a server that has only an Ed448 host key cannot be connected to. Host certificates (*-cert-v01@openssh.com host keys) are not offered either: ZestSSH checks host keys by their fingerprint.

  • An RSA host key shorter than 2048 bits is refused before anyone is asked about it, and the error says how long the key is and how long it must be (versions before 3.3.0 took 1024 bits and up). Compatibility mode takes a shorter key, for old devices that cannot make another.
  • An RSA host key longer than 16384 bits, or with a public exponent longer than 64 bits, is always refused.
  • The signature must be of the kind that was agreed on: a server that agreed on rsa-sha2-512 or rsa-sha2-256 and then signs with SHA-1 is refused.

The first time you connect to a server, ZestSSH asks whether to trust its key and remembers it. On later connections it checks that the key matches, and a changed key stops the connection with a warning. A host keeps its key for the whole session: if it shows another key when the session asks for new encryption keys, the session ends and the app says why. See Host key verification. In a team, a vault can pin a host’s key for every member: see Host Keys.

DSA keys are not supported, as user keys or host keys, in any import format. DSA keys are limited to 1024 bits, and a reused signing nonce reveals the private key. If you still have a DSA key, generate an Ed25519 key and install it on your servers.

Format Header or extension Supported
OpenSSH format -----BEGIN OPENSSH PRIVATE KEY----- Yes
PKCS#1 RSA (PEM) -----BEGIN RSA PRIVATE KEY----- Yes
SEC1 EC (PEM) -----BEGIN EC PRIVATE KEY----- Yes
PKCS#8 (PEM) -----BEGIN PRIVATE KEY----- No
PuTTY PPK v2 and v3 .ppk Yes, RSA and Ed25519 keys only
Public key only .pub No: a key is imported from its private key

ZestSSH asks for the passphrase when a key file is encrypted. It reads:

  • OpenSSH format encrypted with the bcrypt key derivation and an AES-CTR or AES-CBC cipher (what ssh-keygen writes uses aes256-ctr).
  • Old-style PEM (PKCS#1 and SEC1) encrypted with AES-128-CBC, AES-192-CBC, AES-256-CBC, AES-128-CTR, AES-192-CTR or AES-256-CTR. A PEM key encrypted with DES-EDE3-CBC is not read.
  • PuTTY PPK encrypted with aes256-cbc: PPK v2, and PPK v3 with Argon2id, Argon2i or Argon2d.

If a key will not import, see Import failures.

When ZestSSH writes a private key again, to add, change or remove its passphrase, or to export it with a new passphrase or none, it writes OpenSSH format (-----BEGIN OPENSSH PRIVATE KEY-----), sealed as ssh-keygen seals it: bcrypt_pbkdf with 24 rounds and aes256-ctr, or not sealed. An export As the key is kept writes the file as it is stored. See Key management.

ZestSSH shows key fingerprints in the SHA-256 form, without padding, as ssh-keygen -l prints them:

SHA256:<base64 hash>