Skip to content

FTP and FTPS

An FTP tab is a console that prints every step: the mode (FTPS (explicit, AUTH TLS) to host:21 (passive mode)), Resolving <host>..., the DNS answer, TCP connect to <ip:port>..., the greeting (< 220 …), the TLS handshake and each command with the server’s reply. Field details: FTP sessions.

Timeouts: DNS 10 s, TCP connect 15 s, each reply 30 s. A server reply is shown as server replied <code> <text>, a network error as connection error: <system error> (<kind>).

Message Cause Check
DNS lookup of <host> failed: failed to lookup address information: … The name does not resolve. dscacheutil -q host -a name <host>
DNS lookup of <host> timed out after 10s The resolver did not answer. scutil --dns, VPN state.
TCP <ip:port>: Connection refused (os error 61) (ConnectionRefused) Nothing listens on the port, or a firewall rejects. Every address of the name is tried in turn. Port 21 (explicit FTPS and FTP) or 990 (implicit FTPS) on the server.
TCP <ip:port>: no answer within 15s (filtered by a firewall?) Packets dropped. Connection test.
TCP <ip:port>: No route to host (os error 65) … For a LAN address: macOS local network access. —

TLS handshake failed: … followed by The certificate of <host> is not trusted by macOS (self-signed, expired, another host name or an unknown CA).

Section titled “TLS handshake failed: … followed by The certificate of <host> is not trusted by macOS (self-signed, expired, another host name or an unknown CA).”
  • Cause: the certificate does not pass the macOS trust check (Keychain trust settings and system roots). On Windows the message says not trusted by Windows: the Windows certificate store.

  • Check: the certificate the server sends:

    Terminal window
    openssl s_client -connect <host>:21 -starttls ftp -servername <host> </dev/null # explicit
    openssl s_client -connect <host>:990 -servername <host> </dev/null # implicit

    or TLS Check… in the Connection test.

  • Fix: a certificate for the host name from a CA that macOS trusts, or add the CA to the Keychain and trust it. y to Connect anyway without verifying the certificate? [y/N] connects encrypted but without authenticating the server; a saved password is then sent only after a second question. N ends with TLS: certificate not trusted, connection abandoned.

TLS setup failed: server replied 500 … / … 502 … / … 534 …

Section titled “TLS setup failed: server replied 500 … / … 502 … / … 534 …”

The server does not support AUTH TLS (explicit FTPS) or refuses it. Check the server’s TLS settings, or use Implicit FTPS if it listens on 990.

Often the wrong mode: implicit FTPS against a plain FTP port (the server waits for USER while KryoDesk waits for a TLS handshake), or the reverse.

Message Cause and fix
< 530 Login incorrect. (the server’s text) after > PASS ******** Wrong password or a login refused by the server (/etc/ftpusers, chroot settings). Up to 3 typed passwords follow.
Password saved in Keychain (password:ftp://…) was rejected; it stays there until you save a new one. The saved password changed on the server. Type the new one and save it.
anonymous login refused by the server Empty login = anonymous; the server does not allow it.
login cancelled Ctrl+C or an empty answer at the prompt.

A password saved for FTPS (password:ftps://…) is not used for plain FTP and the other way round.

Symptom or message Cause Fix
Login works, listing fails with MLSD <folder>: … or LIST <folder>: … (for example server replied 425 Can't open data connection, or no reply from the server within 30s) The data connection cannot be opened. Passive: the firewall in front of the server does not allow its passive port range. Active: the server cannot connect back to this Mac within 30 s (NAT, the macOS firewall). Passive: open the server’s passive port range (pasv_min_port/pasv_max_port in vsftpd, PassivePorts in ProFTPD). In passive mode KryoDesk connects to the control connection’s address, not the one in the PASV reply.
the FTP control connection is out of sync (a reply timed out or the link broke), so the session was closed to avoid acting on wrong replies A reply did not arrive within 30 s, or the TCP connection broke; the next replies could belong to other commands. Reconnect. Repeated: a firewall or NAT that drops idle connections (the console sends NOOP every 60 s while idle).
NOOP (keepalive): … then the FTP connection was lost The server closed the idle session or the link dropped. Server idle timeout (idle_session_timeout in vsftpd).

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close