Port 990 (Implicit FTPS)
Key facts
- Port
- 990
- Protocols
- TCP
- Range
- System port (Well-Known), 0-1023
- IANA service name
- ftps
IANA assigns ports in this range to well-known services, under RFC 6335.
About port 990
Port 990 is the TCP control port of Implicit FTPS, a method where the FTP connection is encrypted with TLS from the very first moment. With the more common method, Explicit FTPS, the connection starts on port 21 and switches to encryption with the AUTH TLS command.
RFC 4217 defines only Explicit FTPS, on port 21. IANA registers port 990 for the ftps service, and port 989 for the data connection (ftps-data).
What port 990 is used for
- Older software and devices: systems that support only Implicit FTPS connect to port 990.
- Servers that offer both methods: some FTP servers listen on both port 21 and port 990, to support every kind of client.
- The data connection: files travel over a separate connection, as with plain FTP, usually in the Passive mode port range. This connection is encrypted too.
In FTP clients, you choose the method in the connection's encryption settings, for example the "Require implicit FTP over TLS" option in FileZilla. In curl, an address that starts with ftps:// connects with Implicit FTPS, and port 990 is used when no other port is given.
Port 990 in the firewall
Open port 990 only when the FTP server is set up to support Implicit FTPS. Also open the Passive mode port range, as set on the server:
- UFW:
ufw allow from 203.0.113.10 to any port 990 proto tcpandufw allow 40000:40100/tcp - firewalld:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="990" protocol="tcp" accept'andfirewall-cmd --permanent --add-port=40000-40100/tcp
When only you or a few developers connect, limit access to your IP addresses, as in the examples. The predefined ftp service in firewalld opens only port 21, so you add port 990 separately.
Risks and security
Implicit FTPS encrypts the password and the files, so it's much safer than plain FTP. Still, any login service open to the internet attracts password-guessing attempts, and how well the encryption protects you depends on its settings:
- Use a valid SSL certificate, and allow only current TLS versions.
- Choose a strong, unique password for each FTP account, and give each account access only to its own folder.
- Limit access to known IP addresses when possible, and run a tool such as fail2ban, which temporarily blocks addresses that make repeated failed login attempts.
- When you don't need Implicit FTPS, prefer Explicit FTPS on port 21 or SFTP, and keep port 990 closed.
Commands to check and configure
-
openssl s_client -connect ftp.example.com:990Connects to port 990 with TLS right away, as Implicit FTPS does, and shows the server's certificate and TLS version.
-
curl -v -u user ftps://ftp.example.com/Connects with Implicit FTPS to port 990 (the ftps:// default) and shows the file list.
-
curl -v --ssl-reqd -u user ftp://ftp.example.com/Connects with Explicit FTPS to port 21, and fails if the server doesn't encrypt the connection, for comparison.
-
ss -tlnp | grep ':990 'Checks whether the FTP server is listening on port 990, and which process it is (requires root).
-
ufw allow from 203.0.113.10 to any port 990 proto tcpAllows access to port 990 only from the given IP address (UFW).
-
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="990" protocol="tcp" accept'Allows access to port 990 in firewalld only from the given IP address. Then run firewall-cmd --reload.
-
firewall-cmd --permanent --add-port=40000-40100/tcpOpens an example port range for Passive mode in firewalld. Match the range to the one set on the FTP server.
Port 990 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 990 | TCP | ftps | ftp protocol, control, over TLS/SSL |
| 990 | UDP | ftps | ftp protocol, control, over TLS/SSL |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 990 FAQ
What's the difference between Explicit FTPS and Implicit FTPS?
With Explicit FTPS, the connection starts on port 21, and the client asks to encrypt it with the AUTH TLS command. With Implicit FTPS, the connection to port 990 is encrypted from the start, without asking. With both methods, the password and files travel encrypted.
Which method should I use?
In most cases, we recommend Explicit FTPS on port 21, the method defined in RFC 4217 and supported by most software and servers. Implicit FTPS on port 990 fits when a program or device supports only this method.
How do I connect with Implicit FTPS in an FTP client?
In your FTP client's site manager, choose Implicit FTPS in the encryption setting, for example "Require implicit FTP over TLS" in FileZilla, and enter port 990. Before that, make sure the server is set up to support this method.
What's the difference between FTPS and SFTP?
FTPS is FTP with TLS encryption, and it uses a control connection and separate data connections. SFTP is a different protocol that runs over SSH, usually on port 22, and carries everything over a single connection. The FTP and SFTP page explains both options in detail.