https://github.com/lana-20/ftp-sftp-tftp
FTP (File Transfer Protocol), SFTP, TFTP Explained
https://github.com/lana-20/ftp-sftp-tftp
Last synced: 4 months ago
JSON representation
FTP (File Transfer Protocol), SFTP, TFTP Explained
- Host: GitHub
- URL: https://github.com/lana-20/ftp-sftp-tftp
- Owner: lana-20
- Created: 2022-10-30T23:06:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T23:25:17.000Z (almost 3 years ago)
- Last Synced: 2025-05-29T21:36:40.343Z (4 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FTP (File Transfer Protocol), SFTP, TFTP Explained
**FTP, SFTP, and TFTP**: Protocols used to transfer files over a network.
FTP stands for **File Transfer Protocol** and this is a **standard protocol that is used to transfer files between computers and servers over a network**, such as the internet. In a nutshell, **FTP is the language that computers use to transfer files over a TCP/IP network**. Eg, if someone anywhere in the world wanted to make their files available for other people to download, all they would have to do is simply upload their files to the FTP server and then other people from anywhere in the world can simply connect to that FTP server and download the files using the FTP protocol. Eg, a person is using a dedicated FTP server to share their files, but they don't necessarily have to set up a dedicated server for an FTP. Because if they really wanted to, they could also **configure their own computer to act as an FTP server**. Eg, in MS Windows this can be done using the internet information services manager.
There are a **couple of ways to transfer files using FTP**. You can use your **standard internet browser** or you can use an **FTP client**.
Internet Browser
As an example, let's download some mp3 files that someone has put on an FTP server. Let's use a standard internet browser in this example. You would open up a web browser and then you would type in the address of the FTP server that you want to connect to, just as if you were going to a regular website. The web address of this FTP server is ftp.example.com. So you would type that address as the URL. Normally if you were going to a regular website, the prefix would be HTTP, but since we are going to an FTP site the prefix is FTP. So now we're connected to the FTP server. From here you can browse different folders that are on the FTP server, depending on what the owner has made available. Then you can view and download what you want. You can click on the mp3 files and then download them to your computer. Sometimes FTP servers will require an account with a username and password, and sometimes you can just log in anonymously. It just depends on what type of authentication that the owner of the FTP server has set up.
FTP Client
And another way that you can connect to an FTP server is by using an FTP client. Now there are a number of FTP clients that you can use, but probably the most popular free FTP client is called FileZilla, which you can download for free. An FTP client provides a graphical user interface and a better overall experience than using a web browser. You would provide the address of the FTP server along with a username and password, if required, and the port number which would be port 21. And then you would just hit the Connect button, and now we're connected to the FTP server. On the left pane you have the files and folders on your local computer. And on the right pane you have a view of the files and folders that are on the remote FTP server. You can just click or drag and drop files from the FTP server, such as the mp3 files, and then download them to your computer just by clicking on them or dragging them over from the right pane to the left pane. And if you have the proper permissions, you can also upload files from your computer to the FTP server by dragging them from the left pane to the right pane and then the files will be uploaded to the FTP server.
**Transferring files between computers** is a common use of FTP, especially when you're transferring files **in bulk**. And another common use of using FTP is to **give the ability to website designers to upload files to their web servers**. The main drawback of using FTP is that it's **not a secure protocol**. The **data that's being transferred is not encrypted**. All the data is sent in clear text which can cause security concerns. So really, FTP should only be used on a limited basis, or on only trustworthy networks, or if the data that's being transferred is not sensitive.
However, if you're going to transfer data that needs to be protected, a more secure transfer protocol should be used. And that's where **SFTP** comes in. SFTP stands for Secure File Transfer Protocol. Secure FTP is just like FTP except that it **adds a layer of security**. The **data** using Secure FTP **is** actually **encrypted using secure shell** during data transfer. So no data is sent in clear text, it's all encrypted. And Secure FTP authenticates both the user and the server, and it uses port 22.
Both **FTP and Secure FTP** are **connection-oriented protocols that use TCP for file transfer**. So they **guarantee file delivery**.
And finally there's TFTP. TFTP stands for **Trivial File Transfer Protocol**. This is a **very simple** File Transfer Protocol. It is **not used to transfer files over the internet** like FTP and Secure FTP do. It's mainly **used for transferring files within a local area network**. Eg, it's often used to transfer configuration files and firmware images to network devices such as firewalls and routers. TFTP is something that most people will never use. And unlike FTP and Secure FTP that use the TCP protocol for file transfer, TFTP is a **connectionless protocol** that uses UDP instead. And because it **uses UDP instead of TCP**, it's an **unreliable** transfer protocol. Finally, TFTP **does not provide any security** during the transfer, and not that it needs to, because it's only used on a local area network and not over the internet.
🔗 https://www.youtube.com/watch?v=tOj8MSEIbfA&t=44&ab_channel=PowerCertAnimatedVideos