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.