Skip to main content
Transfer supports five protocols that differ in what they can do and how well they protect your files and passwords. Choose the one your client supports that best fits your network.

Choose a protocol

When a client supports more than one, prefer SFTP or HTTPS. Use TFTP, FTP, and HTTP only on networks you trust, and turn them off when you’re not using them.

Encryption

  • SFTP runs over SSH. Your username, password, and files are encrypted between the client and your Mac.
  • HTTPS encrypts the connection with TLS, including the username and password.
  • TFTP, FTP, and HTTP send everything unencrypted. Anyone who can capture traffic on the network can read the files, and over FTP and HTTP, the username and password.
Requiring a username and password doesn’t encrypt a connection. FTP and HTTP still send the password in a form anyone capturing traffic can read.
Transfer doesn’t support FTPS (FTP over TLS), which is a different protocol from SFTP. Over SSH, it accepts SFTP sessions only; it doesn’t provide shell access or run commands.

Authentication and access

One account for all protocols

SFTP, FTP, HTTP, and HTTPS share one username and password, set in Transfer > Settings > General. Transfer creates the username transfer with a random password the first time you open it. There are no separate accounts or per-user permissions: anyone who signs in has the same access. Change the password to one you don’t use anywhere else, especially if you enable FTP or HTTP, which send it unencrypted. SFTP accepts password sign-in only, not SSH keys.

Sign-in requirements by protocol

  • TFTP has no sign-in. Any device that can reach your Mac on the TFTP port can download any file in the root directory and, unless Read Only is selected, upload files.
  • SFTP always requires the username and password.
  • FTP requires the username and password, unless you select Allow anonymous logins in Transfer > Settings > FTP. Anonymous users sign in as anonymous or ftp with no password and can upload, rename, and delete files unless Read Only is selected.
  • HTTP and HTTPS don’t require a username or password unless you deselect Allow unauthenticated requests in Transfer > Settings > HTTP/HTTPS. This option is on by default, so when you enable HTTP or HTTPS, anyone who can reach your Mac can download files and, unless Read Only is selected, upload them.
Before you enable HTTP or HTTPS, decide whether clients should sign in. Deselect Allow unauthenticated requests to require the username and password.

Limit what clients can do

  • Read Only, at the top of the Transfer window, blocks uploads and changes over every protocol. See Select a root directory.
  • Allow directory listing, in Transfer > Settings > HTTP/HTTPS, controls whether HTTP and HTTPS clients can browse folders. When it’s off, they can still download a file if they know its path.
  • Allow broadcast transfer requests, in Transfer > Settings > TFTP, is off by default, so Transfer ignores TFTP requests sent to the broadcast address.
  • Choose a root directory that contains only the files you want to share. Clients can see and download everything inside it, including subfolders.
Transfer can’t give clients access to files that your macOS user account can’t access, and it can’t reach files outside the root directory.

Trust the HTTPS certificate

With Generate self-signed certificate selected in Transfer > Settings > HTTP/HTTPS, Transfer creates a certificate authority (CA) unique to your Mac and uses it to issue the HTTPS server’s certificate. The certificate covers your Mac’s current IP addresses and its local host name, and Transfer issues a new one when they change. The CA stays the same, so you only need to trust it once on each client. Until a client trusts the CA, web browsers show a security warning and most command-line clients refuse to connect. To trust it:
  1. Choose Transfer > Settings, click HTTP/HTTPS, and then click Export CA Certificate….
  2. Choose a Format: PEM (.pem) or DER (.cer), then click Export.
  3. Copy the file to the client and install it as a trusted root certificate:
    • Mac: Double-click the file to add it to Keychain Access, then double-click the certificate, expand Trust, and set When using this certificate to Always Trust.
    • Windows: Double-click the .cer file, click Install Certificate, and place it in the Trusted Root Certification Authorities store.
    • iPhone or iPad: Open the file to download the profile, install it in Settings > General > VPN & Device Management, then turn it on in Settings > General > About > Certificate Trust Settings.
    • curl: Pass the PEM file with --cacert transfer-ca.pem.
Only trust a CA certificate you exported yourself from your own Mac. To stop trusting it, remove it from the client. To use a certificate from your organization instead, select Use existing certificate (PKCS#12), click Choose… to select a .p12 file, and enter its password. Make sure the certificate includes the IP address or host name clients use to connect, or they’ll show a warning.

Verify the SFTP server

The first time an SFTP client connects, it shows your Mac’s host key fingerprint and asks whether to trust it. Transfer keeps the same host key from launch to launch, so the client asks only once. If a client later warns that the host key changed, check that you’re connecting to the right Mac before accepting it.

Security checklist

  • Enable only the protocols you need, and turn them off when you’re done.
  • Prefer SFTP or HTTPS, and use TFTP, FTP, and HTTP only on trusted networks.
  • Change the default password, and require it for HTTP and HTTPS.
  • Select Read Only when clients only need to download files.
  • Keep only the files you intend to share in the root directory.
  • Don’t expose Transfer directly to the Internet. See Network access and firewalls.

See also