FTP vs SFTP vs FTPS

On this page

Quick answer. Use SFTP when the server has SSH, which is the usual case for Linux hosting and for port 22. Use FTPS only when the server administrator says the service is FTP with TLS. Use plain FTP only on a network where exposing the password and the files is acceptable, which is rare on the public internet. In WinSCP these are different choices in the File protocol list. SFTP and FTPS are not interchangeable names.

Why the names get mixed up

“Secure FTP” shows up in hosting panels, old blog posts, and client dropdowns. Sometimes the author means SFTP, the SSH file protocol. Sometimes they mean FTPS, which is still FTP after a TLS handshake. WinSCP lists them separately. If you pick SFTP and the server is listening only for FTPS, the connection fails before any password is judged. The failure looks like a network problem, and the password is not the cause.

Three columns labeled FTP, FTPS, and SFTP. FTP is unencrypted on port 21, FTPS adds TLS on port 21 or 990, and SFTP runs inside SSH on port 22.
Each column is a different session setup. A server can offer more than one, but a single WinSCP site uses one of them.

How each protocol moves a file

FTP

FTP uses a control connection, usually on port 21, and a separate data connection for the file bytes and for directory listings. The commands, the password, and the file contents travel without encryption. Passive mode is the setting most clients need when the PC is behind a home or office firewall, because the server opens the data connection in a way the client can reach. WinSCP’s FTP advanced settings include that mode. Active mode is the one to try only when the server administrator says the server requires it.

Anonymous FTP, when a server still offers it, uses the username anonymous. WinSCP has an anonymous login convenience for the FTP protocol. Do not use it against a server that issued you a personal account.

FTPS

FTPS adds TLS to FTP. Explicit FTPS starts as FTP and then upgrades with AUTH TLS. It often stays on port 21. Implicit FTPS expects TLS from the first byte and often uses port 990. In WinSCP you select the FTP protocol, then choose the encryption method: no encryption, TLS/SSL explicit, or TLS/SSL implicit. The port field can stay on the standard value for that method unless your host published a different one.

Because the data connection is still a separate FTP channel, firewalls and load balancers cause more FTPS trouble than SFTP trouble. A certificate hostname mismatch is a TLS problem, not an SFTP host-key problem. Those prompts are not substitutes for each other.

SFTP

SFTP is the SSH File Transfer Protocol. It runs inside an SSH session, usually on port 22. There is one encrypted channel for login, directory listings, and file data. Before you authenticate, SSH expects you to check the server host key. That check is described in the connection guide. SFTP does not use the FTP PORT or PASV commands, so “passive mode” is not an SFTP setting.

Most SSH servers include an SFTP subsystem. If a login banner or a shell startup script prints text into that channel, clients fail with a message about an SFTP packet that is too large. The fix belongs in the server’s non-interactive startup files. It is covered under troubleshooting.

Comparison you can use while choosing

FTP, FTPS, and SFTP as you will meet them in WinSCP
FTPFTPSSFTP
EncryptionNoneTLS on the FTP sessionSSH
Authentication you will typeUser and password, or anonymousUser and password, plus a certificate checkUser and password, keyboard-interactive, or a private key, plus a host-key check
Usual ports2121 explicit, 990 implicit22
WinSCP settingFile protocol FTP, encryption offFile protocol FTP, explicit or implicit TLSFile protocol SFTP
ResumeSupported when the server allows itSupported when the server allows itSupported from SFTP version 2, which current servers provide
Best fitA lab or a device that has nothing elseA host that only offers TLS-wrapped FTPLinux servers, most modern hosting, and anything that already has SSH

Ports in that table are the defaults WinSCP fills in. The project’s login documentation says you set the port only when the server uses a non-standard one. If your host says “SFTP on 2222,” type 2222. Leaving 22 in that case produces a timeout or a refusal that has nothing to do with your password.

SCP, WebDAV, and S3 in the same program

WinSCP’s protocol list has five entries: SFTP, FTP, SCP, WebDAV, and S3. FTPS is the encrypted mode of the FTP entry, not a sixth protocol name.

SCP

SCP is an older copy method over SSH. WinSCP can use it, and the default behavior described in the documentation is to prefer SFTP and fall back to SCP when you have not chosen. For a new site, choose SFTP explicitly when the server has it. SCP directory listings depend on Unix shell commands such as ls, and the output has to be in a form WinSCP can parse, including English month names. A restricted shell or a colorful ls alias breaks SCP sessions more often than SFTP sessions. Resume is not available for SCP in WinSCP. You also cannot cancel an SCP transfer without ending the session.

WebDAV

WebDAV uses HTTP. The usual port is 80, and secure WebDAV uses 443. WinSCP supports both the unencrypted and the TLS variants. WebDAV is what some content platforms expose instead of SSH. It will not accept an SSH private key. Treat certificate warnings the same way you would in a browser: the name should match, and an unknown issuer needs an explanation from the administrator.

S3

Amazon S3, and some other services that speak the S3 API, use the S3 protocol choice. The username is the access key ID. The password is the secret access key. Amazon’s own endpoints use HTTPS on port 443. An unencrypted S3 setting is only relevant for a third-party endpoint that does not offer TLS. WinSCP can also take credentials from the AWS environment and profile files. Those values are read at login and are not a reason to paste keys into a saved site on a shared PC.

WinSCP does not list TFTP or rsync as transfer protocols. A search for those features will not turn them on. If you need rsync, use a remote shell tool that provides it, not a renamed WinSCP session. Backblaze B2 and similar stores work only when you connect through an API WinSCP actually speaks, such as an S3-compatible endpoint the vendor documents. Read that vendor’s endpoint instructions rather than assuming the brand name appears in WinSCP.

Select the protocol for a new site

  1. Read the host’s instructions once, literally

    Copy the protocol word, the hostname, and the port into a note. If the note says FTP and also says “use TLS,” you are in the FTPS case. If it says SSH or SFTP, you are in the SFTP case.

  2. Set File protocol before you type the password

    Open WinSCP, select New Site, and set File protocol. For FTPS, set the encryption dropdown as well. Check the port WinSCP filled in. Change it only when the host’s note disagrees.

  3. Complete the matching safety check

    SFTP and SCP stop for a host key. FTPS and secure WebDAV stop for a certificate problem when the certificate is not trusted. Plain FTP stops for neither, which is the risk, not a convenience.

  4. Confirm with a directory listing

    A successful choice shows the remote folder after Login. If you see a web page, an SSH banner error, or an immediate close, the protocol or port is still wrong. Move to connection refused or connection timed out based on the wording, not on a feeling that the password is bad.

Diagram of the WinSCP Login dialog with File protocol set to SFTP, port 22, a host name, and a user name.
The File protocol control is the switch among SFTP, FTP, SCP, WebDAV, and S3. FTPS is chosen after FTP, in the encryption control. Field names match the Login dialog documentation.

Common mistakes

  • Selecting SFTP because it sounds safer when the host only runs FTPS on port 21.
  • Selecting FTP with no encryption on a public network because a five-year-old guide still says to.
  • Entering port 22 for implicit FTPS, or port 990 for SFTP.
  • Expecting TFTP, rsync, or a native Amazon console inside a protocol WinSCP does not implement.

FAQ

Which is more secure, SFTP or FTPS?

Both can encrypt the session when they are configured correctly. SFTP gives you SSH host-key checking and, if you set it up, public-key login. FTPS gives you a TLS certificate. An ignored warning removes the benefit in either case. Plain FTP provides neither.

Why does WinSCP mention SCP if SFTP is better?

Some older SSH servers offer SCP and not a usable SFTP subsystem. SCP is the compatibility path. It needs a Unix-like shell and a parseable ls. Use it when SFTP is unavailable, not as the habit for a new Linux server.

Does passive mode apply to SFTP?

No. Passive and active modes are FTP data-connection styles. SFTP does not open that second FTP channel.

Can one saved site speak two protocols?

No. Create two sites if you truly have two services, for example SFTP for shell-managed files and S3 for a bucket. Name them so you can tell which protocol you are about to use.

Previous: FTP and SFTP clientsNext: Server connection

Sources