Skip to content
Related Articles

Related Articles

Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)

Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 16 Aug, 2022
Improve Article
Save Article

FTP stands for File Transfer Protocol. It is a protocol that is used to transfer or copy the file from one host to another host. But there may be some problems like different file names and different file directories while sending and receiving a files in different hosts or systems. And in FTP, a 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 that provides a secure channel, to transfer or copy the file from one host to another host or system. SFTP establishes the control connection under SSH protocol and It is used in port no-22. 

There are some differences between them which are given below: 

S. No.FTPSFTP
1.It stands for File Transfer Protocol.It stands for Secure File Transfer Protocol.
2.It was developed by Abhay Bhushan and published as RFC in the year 1971. Sami Lehtinen assisted the Tatu Ylönen in the development of SFTP in the year 1997. 
3.In FTP, secure channel is not provided to transfer the files between the hosts.In SFTP, a secure channel is provided to transfer the files between the hosts.
4.It is a part of the TCP/IP protocol.It is a SSH protocol.
5.It usually runs on port no-21.It runs on port no-22.
6.It establishes the connection under TCP protocol.It establishes the control connection under SSH protocol.
7.It does not encrypt the data before sending.It encrypted data before sending.
8.It works on direct method for file transfer.It works on tunneling method for transferring of files.
9.It makes uploading and downloading of files without any security.It maintains full security of the data by using SSH keys.
10.It uses two channels.While; SFTP uses only one channel.
11.It doesn’t require any authentication.While in SFTP, the user needs to authenticate the FTP client with a username and password or SSH keys.
12.FTP is faster.It is slower compared to FTP.
13.The direct transfer method is used to transfer the data in FTP.The tunneling method is used to transfer the data in SFTP.
14.

Advantages-

  • Speedy data transfer
  • Transfer multiple files and directories 
  • Multitasking (transferring and downloading can go in parallel)
  • Continuous Transfer i.e. transfers can be resumed from a given point
  • Many FTP clients have scripting features.

Advantages-

  • Encryption
  • Host Authentication
  • Compliance
  • Only one connection is used as DATA connection is not required in SFTP.
15.

Disadvantages-

  • Few FTP providers do not offer encryption
  • Possibility of Eavesdropping because of the plain text used for sensitive information such as password, etc.
  • When sending files via FTP, compliance can be a problem.

Disadvantages-

  • SSH keys are difficult to maintain and verify.
  • Difficult to login because communication is binary.
  • The standards categorize some elements as optional or recommended, which causes some incompatibilities between software products from various vendors.
  • Slow speed
  • Communication is not human-readable as it is in binary form.

 

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!