Day 19 β FTP: File Transfer Protocol
π·οΈ Topic: FTP β File Transfer Protocol
π Key Concept: Moving Files Across Networks
βοΈ Caption: βFTP is the digital courier for your documents.β
βΈ»
π¦ FTP β The Original Digital Delivery Service
Before cloud drives and Google Docs, there was FTP β the File Transfer Protocol that let users send and receive files over a network.
Imagine a courier service β where you place a document at one end, and someone picks it up at the other.
Thatβs FTP.
A reliable, structured way to move data between systems, especially from client to server and vice versa.
βΈ»
π§ What is FTP?
FTP is a standard protocol used to transfer files between computers over a TCP/IP network, such as the Internet.
It allows you to:
β’ Upload files to a server (e.g., publishing a website)
β’ Download files from a server (e.g., retrieving logs)
β’ Rename, delete, or move files on a remote system
βΈ»
π How FTP Works
FTP runs on the Application Layer of both the OSI and TCP/IP models, and typically uses two ports:
Port Purpose
21 Control connection (commands)
20 Data transfer (actual files)
A connection involves two parts:
1. Control Connection β sends commands like LIST, RETR, STOR
2. Data Connection β moves the actual file
βΈ»
π¨βπ» Common FTP Commands
Command Function
LIST List directory contents
RETR Retrieve/download a file
STOR Store/upload a file
DELE Delete a file
MKD Make a new directory
PWD Print working directory
These commands are typed into an FTP client, or run behind the scenes in tools like FileZilla, WinSCP, or web apps.
βΈ»
π Is FTP Secure?
By default, no.
Classic FTP is not encrypted, meaning usernames, passwords, and file contents are transmitted in plain text.
β
Instead, use:
β’ FTPS β FTP over SSL/TLS (secure connection)
β’ SFTP β SSH File Transfer Protocol (uses port 22; different from FTP)
π§ Tip: Use SFTP for most modern secure file transfer tasks.
βΈ»
π Where Is FTP Used?
β’ Uploading website files to a hosting server
β’ Downloading large datasets from academic or research servers
β’ Remote backups and file storage
β’ Accessing files on corporate or institutional networks
Itβs still the go-to method for structured, repeatable, automated file workflows.
βΈ»
π΅οΈ Real-Life Analogy: Courier Pickup & Delivery
β’ You = FTP Client
β’ Server = FTP Host
β’ Address = IP + Port 21
β’ Package = File
β’ Courier = TCP connection
β’ Instructions = FTP Commands
FTP doesnβt just send files β it also tells the server how to handle them.
βΈ»
π§ Why FTP Still Matters
β’ Itβs reliable for bulk transfers
β’ Supports resume after interruption
β’ Works with scripts, cron jobs, and automation tools
β’ Simple to set up and monitor
Though many newer protocols exist, FTP is still trusted in professional systems β especially in web development, research, and data management.
βΈ»
π― Final Thoughts
FTP is the digital courier of the networking world β not flashy, but incredibly dependable.
It delivers your files, follows commands, and keeps everything organized.
Just make sure your courier wears body armor β use SFTP or FTPS in modern environments.