FTPS
Some servers offer files over FTP with TLS (FTPS) and no SSH at all: a web host’s file account, an older NAS, a company’s upload server. Save such a server as an FTPS host and ZestSSH opens its files in the two-pane file browser, on a computer and on a phone or tablet. There is no terminal.
ZestSSH speaks FTPS only. It never uses plain FTP, which sends the password and every file readable to anyone on the way. A server that offers no TLS is refused before the user name is sent. There is no setting to allow plain FTP.
Availability
Section titled “Availability”| Platform | Status |
|---|---|
| Android | Full support |
| iOS | Full support |
| Windows | Full support. Windows’ own certificate store counts too: see Certificates Windows trusts. |
| macOS | Full support |
| Linux | Full support |
Quick start
Section titled “Quick start”- Add a host (New host on a computer’s Hosts page, + on a phone’s Hosts tab).
- Under Protocol, choose FTPS.
- Under Encryption, keep Explicit TLS (port 21) or choose Implicit TLS (port 990). Ask whoever runs the server which one it uses.
- Type the Address, for example
ftp.example.com. - Under Key, pick a key that holds the user name and password, for example
deployand its password. - Press Test full connection. It connects, checks TLS and the certificate, signs in and lists the first folder.
- Choose Save host, then open the host. Its files open.
The first time you connect, ZestSSH may ask about the server’s certificate. See The certificate on the first connection.
The host editor
Section titled “The host editor”Protocol and encryption
Section titled “Protocol and encryption”The FTPS pill sits in the Protocol row with the other kinds of host, on a computer and on a phone or tablet. Under it, Encryption has two choices:
- Explicit TLS: the usual one. The server greets in the clear, then ZestSSH asks it to start TLS (
AUTH TLS) and sends nothing else until TLS is up. - Implicit TLS: the older one. TLS starts with the first byte.
The editor says the same under the two choices: “Explicit is the usual one (port 21): the server starts TLS when asked. Implicit is older (port 990): TLS from the first byte. Plain FTP is never used.”
Picking FTPS sets the port to 21. Picking Implicit TLS changes a port of 21 (or an empty one) to 990, and Explicit TLS changes 990 (or an empty one) back to 21. A port you typed yourself stays.
In lists, the host’s kind reads FTPS, or FTPS (implicit TLS).
Signing in
Section titled “Signing in”FTPS signs in with the user name and password of the key picked under Key. Under Authentication, the editor says: “FTPS signs in with the user name and password saved under Key. A server that offers no TLS is refused before either is sent.”
If the key has no saved password, ZestSSH asks for the password each time it connects.
What it has, and what it has none of
Section titled “What it has, and what it has none of”An FTPS host keeps the address and port, its key, its group, tags, colour and note, and Wake on LAN.
It has nothing of SSH’s: no jump hosts (Connect via), no keep-alive setting, no Compatibility mode and no host key. It has nothing of a terminal’s either: no theme, no startup command, no environment variables and no port forwards. Where those would be, the editor says “This host is FTPS: it gives files only, no terminal.”
What runs on a host is not offered for it: the server monitor, Run on hosts, snippets, broadcast and port forwarding. Where a list shows hosts for one of those, an FTPS host is dimmed with the same sentence and cannot be picked.
The Test buttons
Section titled “The Test buttons”Both buttons work on an FTPS host. Each step says how long it took.
- Test reachability checks that the port answers and that TLS works, with the check of the certificate. It sends no user name and no password. With a certificate this device already trusts for the host, it says, for example, “Reachable: TCP 12ms, and TLS works (48ms), with a certificate trusted for this host. No user name or password was sent.” With a certificate not trusted yet, it says so, and that connecting will ask about it. It does not ask.
- Test full connection does the same, then signs in and lists the first folder: “Connected: TCP 12ms, TLS 48ms, signed in and listed the first folder in 230ms in all.” Listing the folder needs the server’s passive data ports, so a closed port range shows up here.
Your user name and password go only to a server whose certificate is trusted:
- the certificate this device trusts for the host (or the one your team pinned for it),
- one a public authority signed for that server, or
- a new one you accept in the test’s own New server certificate question, with Trust and test. This trusts it for that one test only. It is not kept.
If the server shows a certificate other than the one trusted for the host, the test stops before anything is sent: “The server showed a certificate other than the one trusted for this host, so the test stopped before sending your user name or password. Connect to the host to see both fingerprints.”
The server’s certificate
Section titled “The server’s certificate”With SSH, a server proves who it is with its host key. With FTPS, it shows a TLS certificate. ZestSSH checks the certificate on every connection, and on every data connection for a listing or a file.
A certificate is trusted, with no question, when it is:
- the one this device trusted before for this address and port, or
- one a public certificate authority signed for the server’s name.
A certificate signed by a public authority is kept for the host, as one you accepted is. Any other certificate stops the connection before the user name is sent, and ZestSSH asks you about it, as it asks about an SSH host key. It asks even when Ask before trusting new keys is off.
The certificate on the first connection
Section titled “The certificate on the first connection”A server whose certificate no public authority signed (a self-signed certificate, for example) asks First connection to ftp.example.com:21:
No authority ZestSSH knows signed this server’s certificate (it may be self-signed). Check it once: after that it is remembered, and you are warned if it changes.
Under it is the certificate’s type (X.509) and its SHA-256 fingerprint, in pairs of capital letters and digits with colons between them, such as AB:CD:EF:01:23:..., with Copy fingerprint. That is the form openssl prints. Check it on the server: gives the command that prints it for the certificate file the server uses, with a copy button:
openssl x509 -noout -fingerprint -sha256 -in /path/to/certificate.pemCompare the two, or compare it with the fingerprint whoever runs the server gives you. Then choose Trust and connect to trust the certificate and connect, or Reject to stop. This is trust on first use: once accepted, the certificate is kept for that address and port, and the next connections go ahead with no question.
A changed certificate
Section titled “A changed certificate”When the server shows a certificate other than the one trusted for it, and no public authority signed the new one, Server certificate changed opens, in red:
The certificate ftp.example.com:21 shows is not the one you trusted before. Most often the server got a new certificate. It can also mean that someone is intercepting this connection.
It shows the fingerprint you trusted (Expected, trusted with the date) and the new one in red (Received now). Under them, “Not sure? Run this on the server itself and compare the fingerprint it prints:” with the openssl command above and Copy command. A note says: “Trusting the new certificate replaces the one saved for this host.”
- Cancel and disconnect is the main button, and the one Enter presses. Nothing is sent to the server.
- Trust new certificate, the red one, replaces the saved certificate and connects.
Certificates Windows trusts
Section titled “Certificates Windows trusts”On Windows, a certificate that Windows itself trusts for the server’s name counts as one a public authority signed. That includes an authority a company installs on its computers. For a certificate Windows is asked about, it also checks whether the certificate was revoked. Windows is asked only about the first certificate of a connection, and only when it is neither the one trusted for the host nor signed by a public authority ZestSSH knows.
On macOS, Linux, iOS and Android, only the public authorities ZestSSH carries itself count. A certificate from a company’s own authority is asked about on the first connection, as a self-signed one is. Once you accept it, it is kept like any other.
Where certificates are kept
Section titled “Where certificates are kept”A trusted certificate is listed in Trusted host keys with the other host keys (see Host key verification). Where a key’s type would be, it reads TLS certificate (SHA-256), with its whole fingerprint as the question showed it. Remove it there, and the next connection checks the certificate as a new one.
Trusted certificates travel with sync, as host keys do. The first time this device connects with a certificate that another device trusted, ZestSSH tells you once: “ftp.example.com:21 was trusted using a TLS certificate recorded on” that device on that date “(synced from another device). If you don’t recognise that device, verify the fingerprint.”
Opening its files
Section titled “Opening its files”Open the host as you open any host. On a computer, its tab shows its files, with no terminal. On a phone or tablet, the two-pane file browser opens by itself once the host connects. Leave it, and the session’s screen says it has no terminal, with Open its files.
The browser works as the computer’s SFTP browser does, on a phone or tablet too (see SFTP browser). On an FTPS host you can:
- browse folders, with hidden files shown or hidden,
- make a folder, and rename,
- delete files and folders. A folder goes with everything in it. A symbolic link is removed as a link and never followed.
- change permissions, on one item or on a folder and everything in it (links are skipped),
- open a text file in the file editor. The file is read straight into memory, never through a file on this device.
- upload and download between the panes, through the Activity queue, with cancel and retry,
- copy files between the FTPS host and another host. They go through this device, as FTP has no copy from one server to another.
What an FTPS host does not have, compared with SFTP:
- Retry with sudo, and the editor’s Save as root. FTP runs no commands.
- Follow (live tail).
- The search of subfolders: the filter works on the folder you are in.
- Sync folder to server. It needs an SFTP host: with an FTPS host in the other pane it says “Point the other pane at a server to sync to it.”
- The free space on the server.
When the connection drops
Section titled “When the connection drops”If the connection drops while you browse, your next action connects again once, then runs. A certificate already trusted is not asked about again (a changed one is, as on any connection). Every minute, the session sends the server a small command (NOOP), so an idle connection stays open. If that fails, ZestSSH connects again once before it ends the session.
A refusal, such as a permission the server denies, is not taken for a dropped connection.
Transfers
Section titled “Transfers”A transfer in the Activity queue runs on a second connection to the server, with the same certificate and no other, so you can keep browsing while it runs.
- Staged, then put in place. A file is written next to its destination as a
.zestpartfile and takes the real name only once it is whole and its size is right. A file that broke off never takes the place of the old one. - Downloads resume. A download that broke off goes on from what came, when the file on the server has not changed since.
- Uploads resume. An upload that broke off with the connection goes on from what the server already has, even after the app restarts. ZestSSH asks the server how much of the
.zestpartfile it holds and sends the rest. This works when the same file of this device, unchanged, goes to the same place again, within a week. A server that takes no resumed upload gets the whole file again, and a local file that changed since is sent from the start. - Cancel and Retry. A cancelled transfer leaves nothing behind. Retry in the queue opens a new transfer connection if the old one dropped.
What ZestSSH keeps on this device to resume an upload is hashes, with the file’s size and time: no server, account or path can be read from it.
Verify after transfer
Section titled “Verify after transfer”After an upload or a download of a file between 4 MB and 256 MB, ZestSSH compares the SHA-256 of both copies and marks the row Verified or Checksum mismatch, as for SFTP. On an FTPS server this works only where the server can say a file’s SHA-256: it offers HASH with SHA-256, or XSHA256. A server with neither is not checked this way. Every transfer is still held to its size.
Imports
Section titled “Imports”Every import that reads FTP or FTPS brings it in as an FTPS host, never as plain FTP. None of them reads a password: after the import, give each host a key with its user name and password.
- CSV file. The protocol column takes
ftp,ftpesandftps.ftpandftpescome in as explicit TLS, on port 21 where the file names no port.ftpscomes in as implicit TLS, on port 990 where the file names no port, or as explicit TLS where the file says port 21. Any FTP or FTPS row on port 990 is implicit TLS. - MobaXterm. Its FTP sessions come in as FTPS hosts.
- SecureCRT and SecureFX. SecureFX’s FTP and FTP over TLS sessions come in as FTPS hosts.
- FileZilla. In FileZilla, choose File > Export, tick the Site Manager entries and save the
.xmlfile (itssitemanager.xmlworks too). FTP and FTPS sites come in as FTPS hosts, SFTP sites as SFTP only hosts, and folders as groups. - WinSCP. In WinSCP, choose Tools > Export/Backup Configuration and save the
.inifile (WinSCP.ini, or its registry exported to a.regfile, works too). FTP sites come in as FTPS hosts, explicit or implicit by WinSCP’s own setting, SFTP and SCP sites as SFTP only hosts, and folders as groups.
Import a file in Import hosts recognises FileZilla and WinSCP files by what is in them. The preview says how many FTP or FTPS hosts the file has: “They come in as FTPS hosts: ZestSSH never uses plain FTP, and a server without TLS is refused before the user name is sent.” A host the file had as plain FTP is marked FTP, imported as FTPS. See Importing from other apps.
A team shares FTPS hosts under the same rules as its SSH hosts: roles, who may add and change hosts, the owners-only and no-export rules for taking a host out of a team, offline limits, and the team’s keys for signing in. You can save an FTPS host in a vault from the host editor, from an import, or with Move to or Copy to (see Move and copy between vaults), wherever your role may add hosts there.
- A watched vault. Where a team watches a vault’s sessions, an FTPS host’s files cannot be opened, as for any host’s files: “This host’s sessions are watched by its team, and a watched session gives no access to the host’s files, so they cannot be opened here.”
- A pinned certificate. The certificate works like a team-pinned host key. Someone who may edit the vault is offered, in New server certificate, a box that starts ticked: Trust this certificate for everyone in the vault, with “Their devices then connect to this server without asking, and a different certificate stops them, unless a public authority signed it for this server.” With a pin, every member’s device connects with no question. Another certificate that no public authority signed opens Not the certificate your team pinned. Only someone who may edit the vault can choose Replace the team’s certificate, which changes it for everyone. Anyone else is told that someone who may edit the vault checks the certificate on the server itself and replaces the team’s pin. The host’s panel shows the pinned certificate’s fingerprint under Pinned for everyone in the vault. The editor’s Test buttons go by the team’s pin too.
- A host keeps its kind. In a team, a saved host stays FTPS, or stays another kind: its editor does not offer the other pills. A change that tries anyway is refused: “In a team, a host can’t change between FTPS and the other kinds: teammates on versions before 3.4 would keep it as it was. Add a new host instead.”
- Setup files. A setup file cannot add an FTPS host. One that gives an existing FTPS host a protocol gets this problem: “web-files in Production is an FTPS host, and a setup file cannot make it another kind of host. Leave its protocol out, or add a new host.”
Older versions
Section titled “Older versions”FTPS is new in ZestSSH 3.4. A device on an earlier version never sees an FTPS host, so it can never take one for an SSH host.
- Your own sync. FTPS hosts travel in a list of their own, which earlier versions do not read. A sync from such a device leaves that list out, and that deletes nothing.
- Teams. An earlier version passes over a vault’s FTPS hosts and their pinned certificates, and keeps everything else it holds. Once that device updates to 3.4, it reads each vault again from the start, once, and the FTPS hosts come in.
How it works
Section titled “How it works”- TLS only. TLS 1.2 or 1.3. With explicit TLS,
AUTH TLSis the first command. If the server refuses it, ZestSSH closes the connection: the user name and password were never sent (ZS-1606). - Every data connection encrypted. File listings and file contents always go over TLS, and every data connection must show the same certificate as the first connection (or take up its TLS session).
- Passive mode only. ZestSSH uses
EPSVwhere the server offers it, elsePASV. WithPASVit connects to the address you saved, not the address the server names, so a server behind NAT that names a private address still works. - Time limits. Connecting, and each wait on the server after that, are held to the Connection timeout in Settings > Terminal and SSH > Connection defaults on a computer. A server that does not answer in time stops with ZS-1607.
Error codes and messages
Section titled “Error codes and messages”A failed connection says what happened in your language. Copy details copies a report of it, with names and secrets taken out.
| Code | What it means | What to do |
|---|---|---|
| ZS-1606 | “This server offers plain FTP only. ZestSSH never signs in without TLS, so nothing was sent, not even the user name.” The server answered no when asked to start TLS. | Check the port and the Encryption choice: implicit TLS is usually on 990, explicit TLS on 21. If it is your server, turn TLS on (vsftpd: ssl_enable=YES; ProFTPD: TLSEngine on). If the server has SSH, save it as SFTP only instead. |
| ZS-1607 | “The server did not answer in time. If folders do not list, a firewall may be blocking its passive ports.” | Try again. If signing in works but folders never list, the server’s passive data ports are closed: set a fixed passive port range on the server (vsftpd: pasv_min_port and pasv_max_port) and open it in its firewall and router. |
Other messages have no code:
| Message | What to do |
|---|---|
| “The server refused the user name or the password.” | Check the user name and password in the host’s key. |
| “The host name could not be found. Check the host’s address.” | Check the address for typos. |
| “The server is not accepting connections on this port. Check the port, and that the FTPS server is running.” | Check the port and the Encryption choice. |
| “The connection to the server broke off. Try again; if it keeps happening, check the network.” | Try again. |
| “A secure connection (TLS) could not be set up with this server.” | Check the Encryption choice and the port. Copy details has what went wrong. |
| “The FTPS connection could not finish this.” | Copy details has what went wrong. |
| “The server’s certificate is not trusted for this host, so the connection stopped.” | The certificate was not accepted. Connect again and check its fingerprint. |
| “The server refused the request (reply 550).” | The server said no, with that FTP reply code. |
| “The server’s reply could not be read. Check that this host and port are an FTPS server.” | Check that the address and port are an FTPS server, not an SSH or web server. |
See Common errors for every code.