Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the principle of FTP, FTPS and SFTP

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

What this article shares with you is about the principles of FTP, FTPS and SFTP. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Introduction to FTP, FTPS and SFTP FTPFTP (short for File Transfer Protocol) is an application layer protocol used to transfer files between clients and servers on a computer network. The complete FTP is composed of a FTP server and a FTP client, which can upload local files to the server through FTP protocol or download the server files locally. It is one of the oldest file transfer protocols in use today and is a very convenient way to move files.

How FTP works FTP connection requires FTP server and client to establish communication on the network. There are two different communication channels when establishing a FTP connection. One is called a command channel, and its function is to issue and respond to instructions. The other is the data channel, which is used for data exchange between the client and the server. When transferring files using FTP, users need to obtain file transfer permission by providing credentials to the FTP server. Of course, some public FTP servers may not need credentials to access their files, but can not guarantee the security of data transmission, any unencrypted data transmission on the public network is very dangerous, so in order to protect the security of data transmission, FTP derived from the following two protocols: FTPS and SFTP. FTPS next two dog son query, found that FPTS has FTPS implicit SSL and FTPS display SSL two modes, both of which are encrypted with SSL. So what's the difference between the two? FTPS implicit SSL: this mode usually runs on port 990. In this mode, all data exchange requires the establishment of a SSL session between the client and the server, and the server rejects any connection attempts that do not use SSL. FTPS explicit SSL: shows that the server under SSL can support both FTP and FTPS sessions. The client needs to establish an unencrypted connection with the FTP server before starting the session, and send AUTH TLS or AUTH SSL commands before sending the user credentials to request the server to switch the command channel to the SSL encrypted channel, and then send the user credentials to the FTP server after the channel is successfully established, so as to ensure that any commands during the session can be automatically encrypted through the SSL channel. Let me give you a simple and quick summary. When implicit mode is enabled, the default port of FTP is changed to TCP/990, the server automatically establishes a secure connection, and the client is required to support secure connection mode, that is, to connect using SSL. When explicit mode is enabled, it is the same as the FTP connection and the default port, but the secure connection needs to be activated with a command of the AUTH SSL/TLS type before data can be transferred properly. SFTP finally let's take a look at SFTP,SFTP, which stands for Secure File Transfer Protocol, also known as secure File transfer Protocol. If FTPS adds a layer of SSL to the FTP protocol, then SFTP is based on the network protocol SSH (secure Shell), which is completely different from the FTP mentioned earlier. SFTP does not use separate command channels and data channels, but data and commands are transmitted over a single connection in specially formatted packets.

SFTP provides two ways to verify the connection.

Like FTP, you only need to verify the user's ID and password when connecting. However, unlike FTP, these credentials are encrypted, which is the main security advantage of SFTP.

In addition to the password, it can also be authenticated by the SSH key and connected through the SFTP protocol.

After learning about these protocols, Ergouzi can use the FTP client tool more easily. He can change the protocol and encryption method according to his own needs, without worrying about not knowing a certain setting.

However, a new question arises again. What does it mean that Ergouzi sees the transmission mode in the transmission settings here, which can be divided into active and passive? If he didn't understand, he opened the Google again.

The difference between passive mode and active mode is that the client initiates a data connection. In active mode, after the client establishes a connection on the command channel, the server initiates a data connection with the client. In passive mode, after the command channel is established, the client initiates the data connection with the server. Because of this difference, we can find out the advantages and disadvantages of the two. For example, the active mode is beneficial to the management of the FTP server, because you only need to open the "access" of port 21 and the "exit" of port 20, but because the port that the server connects to the client is random, the client may trigger the firewall or even be blocked by the firewall directly. On the other hand, the passive mode is beneficial to manage the client. Unexpectedly, there are so many classifications and differences in a seemingly simple storage tool. Different models and different ways can correspond to different needs. It seems that we can still know a little bit about the relevant knowledge when using the tool in the future. It can make the tool easier and more comfortable to use. What are the principles of FTP, FTPS and SFTP? The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report