SSH (Secure Shell)
ZestSSH implements the SSH 2.0 protocol with zest_ssh_core, its own SSH engine (an MIT-licensed fork of dartssh2). SSH is the default protocol for a new host, and it works the same on every platform.
Availability
Section titled “Availability”| Platform | Status |
|---|---|
| Android | Full support |
| iOS | Full support |
| Windows | Full support |
| macOS | Full support |
| Linux | Full support |
Quick start
Section titled “Quick start”- Add a host:
- On a computer: on the Hosts page choose New host at the left of the toolbar, or press Ctrl+Shift+N (on a Mac, Cmd+Shift+N from the File menu works too). The editor opens in a pane beside the page.
- On a phone: on the Hosts tab, tap the + button.
- Under Connection, give it a Nickname, keep SSH as the Protocol, and type the Address and port.
- Pick a Key: the SSH key or saved password the host signs in with.
- Choose Save host.
- Connect:
- On a computer: double-click the host, or select it and press Enter, or click it once and choose Connect in its panel.
- On a phone: tap the host.
A new SSH host starts with the port in Settings > Terminal and SSH > Connection defaults > Default SSH port on a computer (22 unless you change it there).
For a one-off connection, use Quick connect (Ctrl+T on a computer, Cmd+T from a Mac’s File menu, the filter field of a computer’s Hosts toolbar, the bar at the top of the Hosts tab on a phone) and type user@host, host:port or user@host:port. An IPv6 address works bare (2001:db8::10) or in brackets with a port ([2001:db8::10]:2222). Without a port, Quick connect uses the default SSH port.
How a connection is made
Section titled “How a connection is made”- TCP connection: ZestSSH opens a connection to the host and port. It gives up after the Connection timeout in Settings > Terminal and SSH > Connection defaults on a computer: 5 to 120 seconds, 15 unless you change it. The same timeout applies to jump hosts, console servers and the editor’s tests.
- Key exchange: both sides agree on algorithms and a shared secret (see the tables below).
- Host key check: a host seen for the first time asks you to trust its key; a host whose key changed opens Host key changed. See Host key verification.
- Sign-in: with the host’s key, by SSH key, certificate, agent key, password or the server’s own questions.
- Shell: ZestSSH opens a terminal of type
xterm-256colorand starts the shell.
Supported algorithms
Section titled “Supported algorithms”ZestSSH offers a modern set by default. A host’s Compatibility mode switch adds older algorithms for servers that cannot be updated (see Compatibility mode). Each table is in the order ZestSSH prefers. The full lists are in Supported ciphers, Supported key exchange algorithms and Supported key types.
Encryption ciphers
Section titled “Encryption ciphers”| Cipher | Notes |
|---|---|
chacha20-poly1305@openssh.com |
Authenticated encryption |
aes256-ctr |
|
aes128-ctr |
|
aes256-gcm@openssh.com |
Authenticated encryption |
aes128-gcm@openssh.com |
Authenticated encryption |
The two AES-GCM ciphers come after the others, so they are agreed on only with a server that offers none of the first three. Compatibility mode adds aes128-cbc, aes192-cbc and aes256-cbc after them.
Key exchange
Section titled “Key exchange”| Algorithm | Notes |
|---|---|
mlkem768x25519-sha256 |
Post-quantum hybrid (ML-KEM-768 with X25519) |
sntrup761x25519-sha512 |
Post-quantum hybrid (Streamlined NTRU Prime with X25519) |
sntrup761x25519-sha512@openssh.com |
The same exchange under its older name |
curve25519-sha256@libssh.org |
|
curve25519-sha256 |
The same exchange under its standard name |
ecdh-sha2-nistp521 |
|
ecdh-sha2-nistp384 |
|
ecdh-sha2-nistp256 |
|
diffie-hellman-group-exchange-sha256 |
Groups under 2048 bits are refused |
diffie-hellman-group14-sha256 |
A server that offers a post-quantum hybrid gets it first; an older server does not list them and the next one in the table is used. Compatibility mode adds diffie-hellman-group14-sha1 and diffie-hellman-group-exchange-sha1. The 1024-bit diffie-hellman-group1-sha1 is never offered, with Compatibility mode or without.
Host key algorithms
Section titled “Host key algorithms”| Algorithm | Type |
|---|---|
ssh-ed25519 |
Ed25519 |
rsa-sha2-512 |
RSA with SHA-512 |
rsa-sha2-256 |
RSA with SHA-256 |
ecdsa-sha2-nistp521 |
ECDSA P-521 |
ecdsa-sha2-nistp384 |
ECDSA P-384 |
ecdsa-sha2-nistp256 |
ECDSA P-256 |
Compatibility mode adds ssh-rsa (RSA with SHA-1). An RSA host key shorter than 2048 bits is refused unless Compatibility mode is on (versions before 3.3.0 took 1024 bits and up). Ed448 works as a key you sign in with, but is not offered as a host key algorithm.
MAC algorithms
Section titled “MAC algorithms”Used only with a cipher that has no authentication of its own (the CTR and CBC ciphers):
| Algorithm | Notes |
|---|---|
hmac-sha2-512-etm@openssh.com |
Encrypt-then-MAC |
hmac-sha2-256-etm@openssh.com |
Encrypt-then-MAC |
hmac-sha2-512 |
|
hmac-sha2-256 |
|
hmac-sha1 |
|
hmac-sha2-512-96 |
Truncated to 96 bits |
hmac-sha2-256-96 |
Truncated to 96 bits |
Compatibility mode adds hmac-md5.
More protections
Section titled “More protections”- Strict key exchange: when the server supports it, ZestSSH uses OpenSSH’s strict key exchange, the defence against the Terrapin attack (CVE-2023-48795).
- New keys: ZestSSH asks for new session keys by itself after 1 GiB in either direction or 2^31 packets, whether or not the server asks.
- RSA signatures when you sign in: an RSA key signs with SHA-512, then SHA-256, as the host takes them. SHA-1 (
ssh-rsa) is used only with Compatibility mode on.
Compatibility mode
Section titled “Compatibility mode”Turn it on for an old server that refuses the modern algorithms (for example OpenSSH older than 7.6, some Proxmox LXC templates, OpenWrt routers):
- On a computer: open the host’s editor, choose Auth in its side rail, and under Options turn on Compatibility mode.
- On a phone: open the host’s editor, tap Advanced options, and under Options turn on Compatibility mode.
Modern algorithms stay first, so a modern server is connected to as before. The switch is shown for SSH hosts only.
Importing many old servers? The import can turn it on for all of them: see Old servers.
Authentication methods
Section titled “Authentication methods”- Public key: see Public key authentication.
- OpenSSH certificates: see OpenSSH certificates.
- Security keys and SSH agents: a FIDO2 security key on a phone (NFC, or USB-C on Android) or through a computer’s SSH agent. See FIDO2 hardware keys.
- Password: see Password authentication.
- Keyboard-interactive (two-factor codes, PAM prompts): see Keyboard-Interactive.
A host with no key signs in as the Default username in Settings: Settings > Terminal and SSH > Connection defaults on a computer, and from 4.3 More > Settings > Terminal and SSH, under Terminal behavior, on a phone. It is root only where none is set or the one set is empty, and a phone does not take an empty name. Test reachability and Test full connection sign in as that user too, as a session does.
To sign in as someone else without making a key first, type the name in Username on the host’s form (from 4.3). The box is there while no key is chosen, under the Key list, and its hint is the default username. Saving the host with another name makes a key named after the user and the address (for example deploy@web-01.example.com) that holds the name and no password, and chooses it: the host signs in as that user, asks for the password when it connects and offers to save it. The form’s tests sign in as the name typed. A remote screen has no such box: its key holds its password.
Other accounts
Section titled “Other accounts”A host can keep more than one key. In the host’s editor, once the host has a Key, choose Add another key under that field and pick another one, or choose Create new key at the end of its menu to make one in the key editor; the new key joins the host’s other keys when you save it (“Other keys this host can be signed in with. Connecting uses the one above.”). Use by default beside one of them makes it the host’s key. Then:
- On a computer: right-click the host on the Hosts page and choose Connect as followed by the account.
- On a phone: long-press the host on the Hosts tab, then tap More and Host actions, and choose Connect as.
Host settings
Section titled “Host settings”| Setting | Where | Default | What it does |
|---|---|---|---|
| Address and port | Basic | Default SSH port | Host name or IP address, port 1 to 65535 |
| Key | Basic | None | The SSH key or saved password to sign in with |
| Connect via (optional) | Network | Direct | A saved host to go through first (a jump host). Needs Squeezed. |
| Keepalive interval | Network | Use global default | 15 seconds, 30 seconds, 60 seconds, 2 minutes, 5 minutes, or Custom… (0 to 3600 seconds) |
| Zlib compression | Network | Off | The switch is saved, but it has no effect: ZestSSH does not compress SSH traffic. |
| Forward SSH agent | Auth | Off | See SSH agent forwarding |
| Compatibility mode | Auth | Off | See Compatibility mode |
| Environment | Advanced | None | Name and value rows (+ Add). Right after the shell opens, ZestSSH types export NAME='value' for each and clears the screen. |
On a computer, Basic, Auth, Network, Terminal and Advanced are the editor’s side rail. On a phone, everything after Basic is behind Advanced options, and so it is on a computer where the editor opens as a page of its own (for example from the command palette).
Keep-alive
Section titled “Keep-alive”With Use global default, a host uses the app’s own interval: SSH keepalive interval in Settings > Terminal and SSH > Behavior on a computer (30 seconds unless you change it; 0 turns keep-alive off), or Keepalive interval in Settings on a phone. A host that leaves three keep-alives in a row unanswered is given up, and the session says so: “{host} stopped answering, and the connection was given up.”
Auto reconnect
Section titled “Auto reconnect”When a session drops without you ending it, ZestSSH connects again by itself, up to 10 times, waiting 2, 4, 8 and 16 seconds and then 30 seconds between tries. Turn it off with Auto reconnect in Settings > Terminal and SSH > Behavior on a computer, or in the session’s terminal settings on a phone.
Jump hosts
Section titled “Jump hosts”Set Connect via (optional) in the host’s editor (under Network) to reach a host through another saved host, as ssh -J does:
- ZestSSH connects to the jump host first (and to its own jump host, if it has one).
- It opens a tunnel through it to the target.
- The target’s SSH session runs inside that tunnel.
Each host in the chain has its host key checked on its own. Jump hosts need Squeezed: on the free plan the host is connected to directly, and a notice says “Connect Via needs Squeezed. Connecting directly instead.” Jump hosts apply to SSH hosts. See Jump host.
Opening a host from a link
Section titled “Opening a host from a link”A home-screen widget, a shortcut or a web page can open a saved host with a zestssh://connect?name=<name> or zestssh://connect?id=<id> link. ZestSSH never connects from a link without asking: it shows “Connect to {host}?” and connects only when you choose Connect. The hosts a link can open are the ones in your personal space. If no host has that name, or two do, ZestSSH says so. A zestssh://connect?host=<address> link opens Quick connect with the address typed in.
The zestssh:// link is registered on Android, iPhone, iPad, Windows and macOS, and on Linux once you run install-desktop-entry.sh from the ZestSSH folder (see Installation). On a computer, a link opens in the ZestSSH that is already running, which comes to the front.
Limitations
Section titled “Limitations”- No GSSAPI or Kerberos sign-in.
- No host certificates: host keys are checked against the keys you trusted (trust on first use). A team can pin its hosts’ keys for every member; see Host Keys.
- No compression (see the Zlib compression row above).
- FIDO2 security keys (
sk-keys) work on an Android phone or an iPhone, which talk to the security key themselves (4.0), and on computers, through an SSH agent. See FIDO2 hardware keys.
Connecting out through an HTTP or SOCKS proxy (ProxyCommand) is not supported
Section titled “Connecting out through an HTTP or SOCKS proxy (ProxyCommand) is not supported”ZestSSH always opens a direct TCP connection to the host and port you set. There is no setting for a corporate HTTP proxy, an outbound SOCKS proxy or an OpenSSH ProxyCommand. When you import an SSH config file, only HostName, Port, User, IdentityFile and ProxyJump are read: a ProxyCommand line is left out, and the host connects directly.
Two things are easy to confuse with this:
- The SOCKS5 proxy feature works the other way round: it is a proxy ZestSSH provides to other apps on your device (like
ssh -D), through a server you are connected to. See SOCKS5 proxy. - To reach a host through an intermediate machine, use a jump host (above). That covers most of what a
ProxyCommandis written for.
Sharing a live session
Section titled “Sharing a live session”In your personal space there is no way to let someone else watch or type in your terminal. The nearest things:
- Broadcast sends your keystrokes to several of your own sessions at once (computers). See Broadcast input.
- Session transcripts keep what the terminal showed. See Session transcripts.
- Recording mode masks host names, addresses and other details so you can share your screen. See Recording mode.
In a team, a session to a host in a shared vault can be shared with the people who can open that vault. See Session sharing and moderation.
Troubleshooting
Section titled “Troubleshooting”Connection timed out
Section titled “Connection timed out”- Check that the host is up and its SSH server listens on the port you set.
- Check that firewalls or security groups let the SSH port through.
- On a slow network, raise Connection timeout in Settings > Terminal and SSH.
Host key changed
Section titled “Host key changed”The server shows a different key from the one you trusted. It can mean the server was rebuilt or its keys were made again, or that someone is in the middle of the connection. Compare the fingerprint with the server’s own (the dialog has Copy command for the command to run there) before you choose Trust new key.
Authentication failed
Section titled “Authentication failed”- Check the username and the key the host uses.
- For a key, check that its public key is in the server’s
~/.ssh/authorized_keys. Install on hosts… on the key adds it for you; see Install a key on hosts. - Check
PubkeyAuthenticationandPasswordAuthenticationin the server’ssshd_config.
Algorithm mismatch
Section titled “Algorithm mismatch”ZestSSH and the server have no algorithm of one kind in common. With an older server, turn on Compatibility mode for the host and try again. When even Compatibility mode has nothing the server offers, the message says so and lists what the server offers: the server has to be updated or set to offer a newer algorithm.
Q: Does ZestSSH support SSH-1? A: No. Only SSH 2.0.
Q: Can I use a non-standard SSH port? A: Yes. Any port from 1 to 65535.
Q: Does ZestSSH compress traffic? A: No. The Zlib compression switch is saved with the host but changes nothing.
Q: How does keep-alive work? A: ZestSSH sends a keep-alive request at the host’s interval, or the app’s interval (30 seconds unless you change it). It keeps idle connections open through firewalls and NAT, and a host that leaves three in a row unanswered is given up.