FTP and FTPS
macSCP connects to FTP servers as well as to SFTP, S3-compatible and WebDAV ones. An FTP session lives in the same sidebar, opens in the same two-pane browser, and uses the same transfer queue as every other kind — see Saved sessions, The browser and Transfers.
FTP is older than the other three and has no shell, so an FTP tab has no terminal pane.
Create an FTP session
Section titled “Create an FTP session”Pick FTP as the protocol in the session editor — see First connection — and fill in:
| Field | What it holds |
|---|---|
| Host | The server’s name or address, nothing else. A user name, ftp://, a port or a path in this field is refused: the user name and the port have fields of their own. |
| Port | 21 for None and Explicit FTPS, 990 for Implicit FTPS. Leave the port the form fills in unless your server says otherwise. |
| Security | One of three modes — see below. A new session starts on Explicit FTPS (recommended). |
| Initial folder | The folder the tab opens in. Leave it empty to open in the folder the server puts you in after login. |
| Username and Password | The login. For a public server that allows anonymous access, enter anonymous as the user name, or whatever name that server documents, and the password it asks for. In v1.7.0 an empty user name is not an anonymous login, and servers commonly refuse it; from the next release it is, see the note below. The password is kept in the macOS Keychain, like every other password macSCP stores — see Security. |
The three security modes
Section titled “The three security modes”| Mode | What it does |
|---|---|
| None (plain FTP) | Nothing is encrypted. Your user name, your password and the contents of every file cross the network in the clear. |
| Explicit FTPS (recommended) | The connection starts in the clear and is switched to TLS before your user name and password are sent. This is the mode most FTPS servers use, on the same port as plain FTP. |
| Implicit FTPS | TLS from the very first byte, conventionally on port 990. |
With either FTPS mode, file transfers are protected as well as the commands. macSCP does not carry on in the clear when a server refuses to protect the connection: it stops and says so, and you can choose a different security setting.
Plain FTP asks first. Connecting with None shows the question Send credentials unencrypted?, the same one a WebDAV address starting with http:// shows, because the password travels in the clear. Choose Cancel and nothing is sent. The two FTPS modes never ask.
Trusting the server’s certificate
Section titled “Trusting the server’s certificate”A server’s certificate is checked the way a WebDAV or S3 server’s is: the first time you connect, macSCP shows Trust this server’s certificate? with its fingerprint and expiry date, and remembers your answer. The remembered certificates are listed under Server Certificates…, where you can remove one.
A server that later presents a different certificate than the one macSCP remembers is refused — there is no way to click past it. If the certificate really was replaced, remove the remembered one and connect again.
The same applies to file transfers: if a server uses a different certificate for a transfer than for the connection itself, the transfer is refused.
Browsing
Section titled “Browsing”FTP has no single listing format. When the server announces the machine-readable listing (the MLSD command, which servers advertise as MLST), macSCP uses it; otherwise it reads the server’s ordinary listing in the usual Unix or Windows layout.
- If the server announces the machine-readable listing and then refuses it, the folder fails to open. macSCP does not fall back to the ordinary listing in that case.
- A listing line macSCP cannot read is never dropped quietly: the folder fails to open instead, and the message says which line.
- Symbolic links appear as links, and the Info sheet (⌘I) offers the permissions editor on servers that accept the
SITE CHMODcommand. - The size of a symbolic link to a file can differ between a folder listing and a single-item lookup: the listing reports the link, and the single lookup reports the file it points to.
- FTP has no checksum command that servers commonly carry, so the checksum column answers that a checksum is unavailable on this connection, as it does for WebDAV.
Transfers
Section titled “Transfers”- Files are always sent unchanged. macSCP switches the connection to binary mode and refuses to carry on if the server will not accept it, because any other mode would alter the file’s contents.
- Downloads resume. An interrupted download continues from where it stopped; see Resume after connection loss.
- Uploads start over. FTP has no way to tell whether the part already on the server is still the file you were sending, so an interrupted upload is sent again from the beginning rather than joined to what was left.
- Passive mode. macSCP opens the connection for each transfer itself, to the same server the session is connected to, on the port the server names in its reply. It does not follow a different address in that reply. A server that cannot do that cannot be used.
Parallel transfers
Section titled “Parallel transfers”An FTP server takes one file per connection, so macSCP opens a small pool of transfer connections next to the one it keeps for browsing, renaming and deleting. A running upload therefore never blocks the browser.
The pool’s size comes from Settings → Transfers → Maximum concurrent transfers — see Settings → Transfers. At 1 an FTP tab opens one transfer connection; at 8 it opens up to eight. There is no FTP-specific setting.
A server that limits how many connections one user may hold, and answers the extra ones with a refusal, gets fewer transfer connections; macSCP does not fail the queue over it.
Export and import
Section titled “Export and import”An FTP session is carried along by a session export and by a login-set export, and comes back through the matching import.
Since v1.7.0, an import skips any entry whose connection type it does not know and imports the rest, instead of refusing the whole file. The import result says how many entries were skipped — “N entries were skipped: this version of macSCP does not know their connection type.” — as a number, never as names.
That protects against connection types added in later releases. It does not help an older macSCP with FTP: v1.6.0 and earlier refuse a file that contains an FTP session, the whole file, and import nothing from it. Import such a file with a macSCP that includes FTP.
Import from Cyberduck
Section titled “Import from Cyberduck”A Cyberduck bookmark for FTP is imported like an SFTP one — see Import from Cyberduck. Its folder comes over as the session’s Initial folder.
Cyberduck’s separate FTPS bookmarks are not imported yet.
Connection diagnostics
Section titled “Connection diagnostics”The connection diagnostics include an FTP login step and a Server features row for an FTP session. For a session on None (plain FTP) the login step is skipped, with the reason “This connection is not encrypted, so the check does not send your password. Switch to FTPS to include the login in the check.”
From the command line
Section titled “From the command line”macscp-cli creates and edits FTP sessions — see Command line. No password is taken on the command line.
When something fails
Section titled “When something fails”Each reading below is a whole message, in the language macSCP is running in. The English wording is quoted here; quote it when you report a problem.
| Message | What it means and what to do |
|---|---|
| ”This server refused to transfer files unchanged. macSCP did not continue, because transferring them any other way would alter their contents.” | The server turned down binary mode. Nothing was sent. A different server or a different setting on it is the only way forward. |
| ”This server’s reply about where to send the file could not be read, so the transfer was not started.” | The server’s reply to the request for a transfer connection was not a well-formed address and port, so macSCP could not read it. Nothing was sent. Run the connection diagnostics and send the report if it keeps happening. |
| ”This transfer’s connection had already been handed back, so the transfer was not started. Start the transfer again.” | The connection reserved for the transfer was released before the transfer began. Nothing was sent; start the transfer again. |
| ”This server cannot continue an interrupted transfer, so the transfer was stopped rather than started over at the wrong place. Transfer the file again from the beginning.” | The server did not accept the offset a resumed download asked for, so macSCP stopped instead of starting the download over at the wrong place. Start the transfer again from the beginning. |
More readings are listed under Troubleshooting.