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
- Simple Mail Transfer Protocol (SMTP)
- Network News Transfer Protocol (NNTP)
- Principle Of Reliable Data Transfer Protocol
- 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
- Difference between SVG file and PNG file
- Difference between Secure Socket Layer (SSL) and Secure Electronic Transaction (SET)
- Reliable Data Transfer (RDT) 2.0
- Reliable Data Transfer (RDT) 1.0
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.