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.||It stands for File Transfer Protocol.||It 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.||It is a part of TCP/IP protocol.||It is a SSH protocol.|
|4.||It usually runs on port no-21.||It runs on port no-22.|
|5.||It establishes the connection under TCP protocol.||It establishes the control connection under SSH protocol.|
|6.||It does not encrypt the data before sending.||It encrypted data before sending.|
|7.||It works on direct method for file transfer.||It works on tunelling method for transferring of files.|
|8.||It makes uploading and downloading of files without any security.||It maintains full security of the data by using SSH keys.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- File Transfer Protocol (FTP) in Application Layer
- Difference between Secure Socket Layer (SSL) and Secure Electronic Transaction (SET)
- Difference between TELNET and FTP
- Difference between FTP and TFTP
- Difference between Active and Passive FTP
- XMODEM File Transfer Protocol
- Secure Electronic Transaction (SET) Protocol
- What are the differences between HTTP, FTP, and SMTP?
- Difference between Stop and Wait protocol and Sliding Window protocol
- Difference between Secure Socket Layer (SSL) and Transport Layer Security (TLS)
- FTP Full Form
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
- Simple Mail Transfer Protocol (SMTP)
- Principle Of Reliable Data Transfer Protocol
- Network News Transfer Protocol (NNTP)
- Difference between Seek Time and Transfer Time in Disk Scheduling
- Difference between Rotational Latency and Transfer Time in Disk Scheduling
- Difference between Transfer Time and Disk Access Time in Disk Scheduling
- Create your own secure Home Network using Pi-hole and Docker
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.
Improved By : ashushrma378