Short answer
An FTP server is a process that accepts file transfers from a user-FTP process over the File Transfer Protocol. It listens for a control connection, then moves the file on a separate data connection. The control port is 21. Plain FTP sends the password and the file bytes without encryption. SFTP rides on SSH. FTPS adds TLS to FTP.
Last verified against the sources listed below.
Key takeaways
- RFC 959 defines an FTP server as the process that transfers files with a user-FTP process.
- Commands and replies use a control connection. The file itself moves on a data connection.
- IANA assigns TCP port 21 to FTP control and TCP port 20 to the default data port.
- RFC 2577 says standard FTP sends passwords and file data unencrypted.
- OpenSSH sftp runs over encrypted SSH. That is not the old Simple File Transfer Protocol on port 115.
What is ftp server is a question the File Transfer Protocol answers with a process, not a brand name. RFC 959 calls the server-FTP process the set of processes that transfer files in cooperation with a user-FTP process. It listens, checks who is asking, and moves the bytes.
The same memo gives FTP four goals: share files, let programs use remote computers, hide differences among file systems, and transfer data reliably. The server is the side that stores or receives the file. The user side is the client that sends commands.
What is an FTP server?
An FTP server is that server-FTP process waiting for a client. RFC 959 says its functions are a protocol interpreter and a data transfer process. The interpreter listens on a port, takes commands, and sends replies. The data process moves the file.
The control connection is established via TCP. The memo assigns the service port 21, written as L=21. IANA’s port registry agrees: the service name ftp on TCP port 21 is “File Transfer Protocol [Control].” The name ftp-data on TCP port 20 is “File Transfer [Default Data].”
A person can talk to the server from a terminal. The specification prefers a user-FTP process, because the protocol is aimed at programs. The human still needs an account the server will accept.
The USER command sends the name. The PASS command sends the password. Some servers also ask for an account with ACCT.
How does an FTP server move a file?
It uses two connections. Commands travel on the control connection. File bytes travel on the data connection.
RFC 959 says files are transferred only via the data connection. The control connection carries the commands that describe the work, and the replies.
The control path follows the Telnet protocol. Replies are a completion code plus text. In the memo’s sample, a ready server answers 220, a username that needs a password gets 331, and a successful login gets 230.
A retrieve sends RETR. A store sends STOR.
The data connection is full duplex. It does not have to stay open all the time. The transfer byte size is always 8 bits, even when the stored file uses a different size.
The client can set a type, such as ASCII or Image, before the transfer. Image type is the one you want for a file that must not be changed as text.
Default data ports sit next to the control port. That is why port 20 shows up beside port 21. The client can also ask for a different data port. When the transfer finishes, the sender closes the data connection.
Why does plain FTP send passwords without encryption?
Because the original protocol sends them as ordinary text on the control connection. RFC 2577, FTP Security Considerations, says standard FTP sends passwords in clear text using the PASS command. The privacy section is broader: all data and control information, including passwords, is sent unencrypted.
RFC 959 already knew the password was sensitive. It says the user-FTP process should mask or suppress the password on screen, and that the server has no foolproof way to do that. Masking the local display is not encryption. Anyone who can read the packets can read the PASS argument and the file that follows.
RFC 2577 also describes two other abuses that come from the protocol itself. A client can ask one server to send a file to a third machine, which enables a bounce attack. The specification allows unlimited password guesses, which enables brute-force guessing. The memo’s advice is to limit guesses and to use a strong encryption scheme when you need privacy.
How do SFTP and FTPS differ from an FTP server?
They encrypt. They do it in different protocols, and one of the names is easy to misread.
| Name | What it is | Port the registry shows | Encryption |
|---|---|---|---|
| FTP | File transfer with a control connection and a data connection | TCP 21 control, TCP 20 default data | Not in the base protocol |
| FTPS | FTP after a TLS handshake | TCP 990 is registered as FTP control over TLS or SSL | TLS, requested in RFC 4217 with AUTH |
| SSH | The secure shell transport | TCP 22 | The Secure Shell protocol |
| OpenSSH sftp | File transfer over that SSH transport | Uses SSH, not a separate FTP port | Encrypted SSH transport |
| IANA name sftp | Simple File Transfer Protocol, a different historic protocol | TCP 115 | Not the OpenSSH program |
The OpenBSD sftp manual says sftp is a file transfer program, similar to ftp, which performs all operations over an encrypted SSH transport. It may also use SSH features such as public key authentication and compression. That is the tool hosting panels usually mean by SFTP.
RFC 4217 is the other path. It adds TLS to FTP so the session can provide confidentiality and integrity. The client requests TLS with the AUTH command and a TLS parameter.
IANA separately lists ftps on TCP port 990 as “ftp protocol, control, over TLS/SSL.” Explicit TLS on the normal control port and the registered 990 assignment are both real. They are not OpenSSH sftp.
Do not treat the IANA name sftp on port 115 as the SSH tool. The registry’s description for that row is “Simple File Transfer Protocol.” OpenSSH sftp is the program that rides on SSH, and SSH is TCP port 22.
When is a plain FTP server the wrong tool?
Use it only when you accept that the password and the file are readable on the network. For a site you publish, that is a poor trade. WordPress.org’s optimization guide says that on most shared hosting the account reaches the site files through SFTP, plus a control panel for common host tasks.
That upload path is part of web hosting. The host stores the files and answers public requests. FTP, SFTP, or a panel is how you put files there.
Visitors do not need an FTP login to read the pages. If they do, the files are exposed as a transfer share, not as a site.
Plain FTP can still appear in old scripts and closed networks. RFC 959 was written for programs, and a batch job can still speak it. If the path crosses a network you do not control, the security memo’s advice stands: use encryption. Website security starts with not handing a password to anyone who can watch the packets.
What mistakes do people make with FTP servers?
The first is assuming the login is private because the password characters are hidden. RFC 959 only requires the client to hide them locally. RFC 2577 says they still cross the network in clear text.
The second is mixing up the SFTP names. Port 115 is the simple protocol in the IANA table. The OpenSSH program uses an encrypted SSH transport.
A host that says “SFTP on port 22” is talking about SSH. A host that says “FTP with TLS” is talking about FTPS.
The third is uploading heavy images and then blaming the transfer. Shrink the pictures before they go up. The Image Compressor compresses an image in the browser so the file you store is smaller. It does not encrypt the login, and it does not turn a plain FTP server into SFTP.
A fourth is treating FTP as the public web. How the internet works covers the path a visitor’s request takes. That path is not the control connection on port 21. Keep the transfer account limited to the people who publish files, and prefer the encrypted tool the host documents.
Frequently asked questions
Does an FTP server also serve the public website?
Not by itself. RFC 959 defines FTP as a file transfer protocol between hosts. Visitors usually reach a public site over HTTP or HTTPS, which is a different service on the same machine or on another one. An FTP login can still be how you upload the files that the web server later publishes. Web hosting is the broader service that keeps the site online. The FTP server is only the file-transfer door.
Is the password hidden on a normal FTP login?
No. RFC 959 tells the user-FTP process to hide the password on the local screen, because the server has no reliable way to mask it. RFC 2577 then states the network fact: standard FTP sends passwords in clear text with the PASS command, and it sends data and control information, including passwords, unencrypted. Hiding the characters you type does not encrypt them on the wire.
What is the difference between SFTP and FTPS?
SFTP in the OpenSSH manual is a file transfer program that performs every operation over an encrypted SSH transport, and it can use public key authentication. FTPS is FTP secured with TLS. RFC 4217 has the client request TLS with the AUTH command. IANA also registers the name ftps on TCP port 990 as FTP control over TLS or SSL. They both encrypt. They are not the same protocol.
Why does port 115 show up next to the name sftp?
IANA registers the service name sftp on TCP port 115 as the Simple File Transfer Protocol. That historical name is not the OpenSSH sftp program. OpenSSH sftp runs over SSH, and IANA lists the Secure Shell protocol on TCP port 22. If a panel says SFTP and means the SSH file tool, the port to expect is the SSH port, not 115.
Should a shared host account use plain FTP?
WordPress.org's performance guide says that on most shared hosting you reach the site files through SFTP. That matches the security note in RFC 2577: plain FTP leaves the password and the file bytes unencrypted. Use the SSH-based tool the host documents, or FTP with TLS if that is what the host actually offers. Do not type a hosting password into a plain FTP session on an open network.
Sources
- File Transfer Protocol (FTP) · RFC Editor, 1985
- FTP Security Considerations · RFC Editor, 1999
- Securing FTP with TLS · RFC Editor, 2005
- sftp(1) OpenSSH secure file transfer · OpenBSD, 2026
- Service Name and Transport Protocol Port Number Registry · IANA, 2026
- Optimization · WordPress.org, 2026