FTP and FTPS sessions
An FTP session opens a tab whose terminal is the connection console: every stage is logged there, the login and password are asked there, and raw FTP commands can be typed. Files are listed and transferred in the Files window, on this connection. Closing the tab disconnects.
Shared fields are on the Session dialog page. Without Specify username
the console asks login as (empty = anonymous):; an empty answer logs in as anonymous with
the password anonymous@.
FTP settings
Section titled “FTP settings”
| Field | Values | Default | What it does |
|---|---|---|---|
| Encryption | None: plain FTP (login and files unencrypted), Explicit FTPS: AUTH TLS on port 21, Implicit FTPS: TLS from the start, port 990 | None | Plain FTP prints a warning in the console. Picking implicit changes port 21 to 990 (and back), unless you typed another port. |
| Data connection | Passive (PASV/EPSV, the client connects), Active (PORT/EPRT, the server connects back) | Passive | Who opens the data connection for listings and transfers. In passive mode the address in the server’s PASV reply is replaced with the address of the control connection (for servers behind NAT that announce a private address). In active mode the server has 30 s to connect back. |
Connection console
Section titled “Connection console”
The console of an FTPS session after the login.
The console prints, in order: the mode (FTPS (explicit, AUTH TLS) to host:21 (passive mode)),
the DNS answer with time, the TCP connect per address, the server greeting (< 220 …), the TLS
handshake, USER/PASS (the password shown as ********), FEAT, OPTS UTF8 ON when the
server lists UTF8, TYPE I, PWD, and whether folders are listed with MLSD or LIST.
Timeouts: DNS 10 s, TCP connect 15 s, each reply 30 s. While idle the console sends NOOP
every 60 s so that NAT and the server keep the session.
TLS certificate
Section titled “TLS certificate”The certificate is checked with the macOS trust settings (Windows: the Windows certificate store). When the check fails the console shows
the TLS error and explains it (self-signed, expired, another host name, unknown CA), then asks
Connect anyway without verifying the certificate? [y/N]. After y the connection is encrypted
but the server is not authenticated, and a saved password is sent only after another question:
Send the password saved in Keychain (…) over this unverified TLS connection? [y/N].
Password
Section titled “Password”The saved password is used first (Using the password saved in Keychain (…)), then up to 3
typed attempts. After a successful typed password: Save password in Keychain? [y/N]. Plain FTP
and FTPS have separate keys (password:ftp://…, password:ftps://…), so a password saved for
FTPS is never sent unencrypted after the session is switched to plain FTP.
Commands in the console
Section titled “Commands in the console”The prompt ftp> sends one raw command on the control connection and prints the reply, for
example SITE CHMOD 755 file, STAT, SYST, HELP.
- Refused because they need a data connection (use the Files window):
LIST,NLST,MLSD,RETR,STOR,APPE,STOU. - Refused because they would change the state the Files window relies on (transfer type, data
channel, TLS, login):
TYPE,MODE,STRU,REST,PASV,EPSV,PORT,EPRT,AUTH,PBSZ,PROT,CCC,USER,PASS,REIN,ABOR. Reconnect for another login.