Technical Anshu
Tutorials Blog
Protocol Basics

SFTP vs FTP Why Plain FTP Is Finished

Both move files. One of them broadcasts your password to anyone listening on the path. If you are choosing a protocol today, this page ends the debate with facts, not fashion.

By Technical AnshuUbuntu Server7 minute read
Watch the complete Ubuntu SFTP server setup step by step in the video

FTP is older than the web, and it was designed for a friendlier internet where nobody on the wire was assumed hostile. That assumption is dead. Below is what actually travels on the wire in each protocol, why firewall teams hate FTP, and the one place you will still meet it - old devices that know nothing else.

What a listener on the network sees
FTP loginUSER admin PASS office123
FTP filesalary.xlsx - fully readable
SFTP loginencrypted - nothing readable
SFTP fileencrypted - nothing readable
A packet capture on a shared or compromised network reads FTP like a postcard. The same capture of SFTP shows only noise.
1

The Password Travels in Plain Text

This is not a theoretical weakness. In FTP the username, the password and every byte of every file cross the network exactly as typed, as the panel above shows. Anyone positioned on the path - a rogue device on the office LAN, a compromised router, a neighbour on shared Wi-Fi - can read all of it without attacking anything.

SFTP encrypts the entire session before any credential is sent, and it also checks the data for tampering on the way. The same listener gets nothing usable.

2

One Port Against a Moving Target

FTP uses port 21 for commands and then opens separate, shifting connections for the data itself. Firewalls and NAT routers have to guess and poke extra holes, which is why FTP so often half-works: login succeeds, folder listing or transfer hangs.

SFTP runs everything through the single SSH connection on port 22. One rule in the firewall, no passive port ranges to configure, and it behaves the same through almost any network.

3

FTPS Is a Third, Different Thing

Do not let the similar names blur together:

  1. FTP - plain text, finished, avoid
  2. FTPS - the old FTP protocol wrapped in TLS; secure, but it keeps FTP's multi-port firewall problems
  3. SFTP - a different protocol entirely, built on SSH; secure and single-port

When a client says their software supports "secure FTP", check which of the last two it means. They are not interchangeable and the wrong choice fails silently at connection time.

There is also a speed myth worth retiring: the encryption in SFTP costs almost nothing on any modern machine. People repeat benchmarks from twenty year old hardware as if they were laws of nature. On the PCs and servers in use today, your network and your disk will slow down long before the encryption does, so speed is never a honest reason to stay on plain FTP.

4

Where FTP Honestly Still Appears

Honesty matters here: you will still meet FTP in the wild. Some old network printers, CCTV recorders and legacy machines offer nothing newer. The rule is containment, not panic:

  1. Keep such devices on the local network only - never expose FTP to the internet
  2. Give the device its own account with a password used nowhere else
  3. Move files with SFTP everywhere a choice exists, and let the one legacy corner stay a corner

Watch the Full Video

See the whole Ubuntu SFTP setup done live, with the exact clicks and commands, in the Technical Anshu video.

Watch Full Video
Frequently Asked Questions

Is SFTP the same as FTP over SSH or FTPS?

No. SFTP is its own protocol built into SSH. FTPS is the original FTP protocol with TLS added. The names look alike but the software, ports and behaviour are different.

Can someone really read my FTP password that easily?

Yes. A free packet capture tool on the same network shows FTP credentials in plain text within seconds. This is the main reason plain FTP disappeared from serious use.

My old device only supports FTP. Must I replace it?

Not immediately. Keep it off the internet, give it a unique password, and restrict it to one folder. Replace it on the normal upgrade cycle, not in a panic.

This guide is based on the Technical Anshu Ubuntu SFTP server video - Stuck on a step? Ask in the video comments and you will get a reply.