FTP stands for File Transfer Protocol. It is a protocol which is used to transfer or copies the file from one host to another host. But there may be some problems like different file name and different file directory while sending and receiving file in different hosts or systems. And in FTP, secure channel is not provided to transfer the files between the hosts or systems. It is used in port no-21.
SFTP stands for Secure File Transfer Protocol. It is a protocol which provides the secure channel, to transfer or copies the file from one host to another host or systems. SFTP establishes the control connection under SSH protocol and It is used in port no-22.
There are some difference between them which are given below:
|1.||FTP stands for File Transfer Protocol.||SFTP stands for Secure File Transfer Protocol.|
|2.||In FTP, secure channel is not provided to transfer the files between the hosts.||In SFTP, secure channel is provided to transfer the files between the hosts.|
|3.||FTP (File transfer protocol) is a part of TCP/IP protocol.||Secure File Transfer Protocol is a SSH protocol.|
|4.||FTP (File transfer protocol) usually runs on port no-21.||SFTP (Secure File Transfer Protocol) runs on port no-22.|
|5.||FTP establishes the connection under TCP protocol.||SFTP establishes the control connection under SSH protocol.|
|6.||FTP do not encrypt the data before sending.||SFTP, data is encrypted before sending.|
- File Transfer Protocol (FTP) in Application Layer
- Principle Of Reliable Data Transfer Protocol
- Simple Mail Transfer Protocol (SMTP)
- C program for file Transfer using UDP
- Difference between Stop and Wait protocol and Sliding Window protocol
- Secure Electronic Transaction (SET) Protocol
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
- Difference between Stateless and Stateful Protocol
- Difference Between Go-Back-N and Selective Repeat Protocol
- Asynchronous serial data transfer
- Asynchronous Transfer Mode (ATM) in Computer Network
- Difference Between High-level Data Link Control (HDLC) and Point-to-Point Protocol (PPP)
- Difference between File and Folder
- Difference between Header file and Library
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.