In Linux, the ports used by ftp are "20" and "21", of which port 20 is used to transmit data and port 21 is used to transmit control information; the ftp server is used to store files, and users can use FTP The client accesses resources located on the FTP server through the FTP protocol.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The FTP protocol uses two TCP ports, 20 and 21, of which 20 is used to transmit data and 21 is used to transmit control information.
is a protocol for transferring files between two computers on a TCP/IP network. FTP is one of the earliest protocols used on TCP/IP networks and the Internet. It belongs to the application layer of the network protocol group. The FTP client can issue commands to the server to download files, upload files, and create or change directories on the server.
Compared to HTTP, the FTP protocol is much more complex. Reason for complexity: Because the FTP protocol uses two TCP connections, one is the command link, used to transfer commands between the FTP client and the server; the other is the data link, used to upload or download data. FTP is based on the TCP protocol, so in the iptables firewall settings, you only need to release the TCP protocol of the specified port.
ftp: It is one of the protocols in the TCP/IP protocol group.
ftp: The ftp server is used to store files. Users can use the FTP client to access resources located on the FTP server through the FTP protocol.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is the ftp port in linux. For more information, please follow other related articles on the PHP Chinese website!