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.|
GeeksforGeeks has prepared a complete interview preparation course with premium videos, theory, practice problems, TA support and many more features. Please refer Placement 100 for details
- File Transfer Protocol (FTP) in Application Layer
- Network News Transfer Protocol (NNTP)
- Simple Mail Transfer Protocol (SMTP)
- 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)
- Difference between Rotational Latency and Transfer Time in Disk Scheduling
- Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
- Difference between Stateless and Stateful Protocol
- Difference between Seek Time and Transfer Time in Disk Scheduling
- Difference Between Go-Back-N and Selective Repeat Protocol
- Main difference between Timestamp protocol and Thomos write rule in DBMS
- Difference between Virtual Private Network (VPN) and Multi-Protocol Label Switching (MPLS)
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.