FTP
File Transfer ProtocolBest for: Old devices that speak nothing else
- Password, from You
- OK, from File server
- File, from You
Compare protocols
Best for: Old devices that speak nothing else
Best for: Any file transfer over the internet
FTP sends your password and files as plain text and uses two connections, one for commands and one for each file. SFTP is a different protocol that runs inside an SSH connection on port 22, so the login and every file are encrypted and only one connection is needed. Use SFTP. Keep FTP for old systems that cannot do anything else.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | FTP | SFTP |
|---|---|---|
| Encryption | None (FTPS adds TLS) | Always, through SSH |
| Ports | 21 for commands, plus 20 or a random port for data | 22 only |
| Connections | Two: control and data | One |
| Firewalls and NAT | Awkward: active and passive modes | Simple: one TCP port |
| Login | Username and password, sent as text | Password or SSH key |
| Messages | Text commands like USER, PASS, RETR, STOR | Binary packets inside SSH |
| Standard | RFC 959 (1985) | IETF draft, part of the SSH tool set |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 7
Encryption
None (FTPS adds TLS)
No. FTPS is the old FTP with TLS added, still on two connections. SFTP is a separate protocol that runs inside SSH.
Not really. It is its own file protocol built for SSH. It does not use FTP commands, and FTP clients only speak it when they support SFTP as a separate option.
FTP sends the username, password and files without encryption. Anyone on the same network or path can read them with a packet capture.
Port 22, the SSH port, unless the server runs SSH on another port.