Join our Newsletter — 33% off our NHI Course
Home› Guides› FTP and SFTP for Beginners: Why Plain FTP…
Guide Network Security

FTP and SFTP for Beginners: Why Plain FTP Exposes Passwords and What to Use

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

FTP and SFTP are two ways to copy files between a computer and a server.

This guide is for anyone who uploads a website, swaps files with a supplier or has been told to "use SFTP, not FTP". You do not need to be technical to be affected: if your web designer or accountant moves your files this way, the choice of tool decides who else could read them.

In short

  • Plain FTP sends your username, password and files across the network without scrambling them.
  • Anyone able to watch that traffic may be able to read the password and reuse it.
  • SFTP does the same job inside an encrypted SSH connection, so the password and files are scrambled on the way.
  • Switch to SFTP (or FTPS), change any password that has been used over plain FTP, and give each person or script its own account.

What you will learn

  • Explain the difference between FTP and SFTP in one sentence.
  • Spot a file transfer app that is still set to plain FTP.
  • Check which of your suppliers still move your files over FTP.
  • Ask for a safer set-up without needing technical words.
File copying rules (FTP)
an old set of rules for copying files to and from a server, with no scrambling.
Locked file copying (SFTP)
a way to copy files that runs inside an encrypted SSH connection.
Scrambling (encryption)
turning data into a form that only someone with the right key can read.

What are FTP and SFTP?

Think of sending a postcard. Every person who handles it on the way can read what you wrote. Now think of the same message in a sealed, tamper-proof envelope.

FTP (File Transfer Protocol) is the postcard. A protocol is simply an agreed set of rules that two computers follow to talk. FTP dates from the 1980s. It sends everything, including your password, as plain readable text.[1][2]

SFTP (SSH File Transfer Protocol) is the sealed envelope. It runs inside SSH, a secure way to connect to a remote computer. SSH scrambles the traffic, checks that you reached the right server and spots changes made on the way.[3][4] Its written design was never finished as a formal internet standard, but it is widely supported by file transfer apps and servers.[6]

There is also FTPS, which is old FTP with a secure layer called TLS added on top. TLS is the same protection your browser uses for websites that start with https.[5] FTPS and SFTP are different tools, but both protect the password on the way.

Where the comparison stops working: a sealed envelope only hides the message while it travels. Once your file lands on the server, SFTP no longer protects it. Who can open it there depends on the server's own settings.

Why does it matter?

A password sent over plain FTP can be read by anyone watching the network on the way. Shared office or public Wi-Fi are common examples. The standards body that looks after internet rules has warned about this since 1999.[2] A stolen upload password can let a stranger change your website.

If you run a small business website

What could happen: someone reads the FTP password your designer uses and quietly adds harmful pages to your site.

Check this: ask your designer or host, "Do you upload our site with SFTP or plain FTP?"

Next: Website Security for Beginners

If you swap files with a supplier

What could happen: payroll or customer files travel as readable text, along with the login used to fetch them.

Check this: list every supplier who sends or collects files, and how they do it.

Next: Secure File Sharing for Beginners

If you are new to IT work

What could happen: you set up a quick FTP account "just for now", and it is still running a year later.

Check this: look for any server still accepting plain FTP and note who uses it.

Next: SSH Keys for Beginners

What does it look like?

Many people use a file transfer app with a saved connection. Here are made-up settings for a brewery's website.

Example only. All values are made up.

# Saved connection in a file transfer app
Name:      Brewery website
Host:      files.example.invalid
Protocol:  FTP (plain)               (1)
Port:      21
User:      shared-web                (2)
Password:  FAKE-Hops-0000            (3)
  1. Plain FTP: the password and files travel as readable text.
  2. One login shared by everyone who updates the site, so nobody can tell who did what.
  3. In a real file, this line would contain the upload password, saved on the laptop.

Why this is risky: every time this connection is used, the password crosses the network in a form anyone watching can read.[2] Because the login is shared, a leak is hard to trace.

The safer way: the protocol is set to SFTP, which normally uses the SSH port, 22.[4] Each person or script has its own account. Where possible, they sign in with an SSH key (a pair of matching files used instead of a password) rather than a typed password.[3]

Example only. All values are made up.

# Safer saved connection
Protocol:  SFTP
Port:      22
User:      vida-web
Sign-in:   SSH key (no password stored)

How does it work?

Here is what happens when you upload a file, and where the two tools differ.

  1. You connect. Your app reaches out to the server across the internet.
  2. The server is checked (SFTP only). SSH checks the server's identity, so you know you reached the right one. Plain FTP has no such check.[4]
  3. The channel is locked (SFTP only). SSH agrees a secret key with the server and scrambles everything after that point.[4]
  4. You sign in. Over FTP, your password travels as plain text. Over SFTP, it travels scrambled, or you use an SSH key instead.[2][3]
  5. The file travels. Over FTP, the file content can be read on the way. Over SFTP, it is scrambled until it reaches the server.
Before and after diagram titled Same upload, two ways. Top panel, labelled Plain FTP, risky: a laptop sends the username, password and file to a web server as readable text, like a postcard. A person on the same network in the middle can read the password FAKE-0000 and the file. Bottom panel, labelled SFTP, safer: the same laptop sends the same items inside a locked SSH tunnel, like a sealed envelope. The person in the middle sees only scrambled data. A note says SFTP protects the trip, not the file once it is stored on the server.
Figure 1. The postcard and the sealed envelope: plain FTP shows the password on the way, SFTP scrambles it.

A worked example

Vida Pajari runs Hazel Brewery, a fictional craft brewery with a small online shop. A freelance web developer, Sana Nakamura, looks after the website.

Vida gets an email from her hosting company. It says plain FTP will soon be switched off on her account, and she should move to SFTP.

She calls Sana and asks what this means. Sana explains the postcard and the sealed envelope. "Right now, our upload password crosses the network in plain text. Anyone watching the traffic on the way could read it."

They agree a plan. First, Sana turns on SFTP in the hosting control panel and checks that her app connects on the new setting. Next, she changes the old upload password, because it has been sent as plain text for years. She cannot be sure nobody has seen it.

Vida learns that three people share one login: Sana, a former designer and the stock system that uploads product lists each night. Sana gives herself her own SFTP account, signed in with an SSH key. The stock system gets its own separate account that can only reach the product folder. The former designer's access is not recreated.

Last, Sana checks the website files against her backup and finds no unexpected changes in the files she compared. She turns off plain FTP on the account.

The whole job takes an afternoon. Vida adds a line to her supplier checklist: "Files move by SFTP or a secure sharing service, never plain FTP."

Myths and mistakes

What people thinkWhat is true
SFTP is just FTP with a password.Plain FTP already uses a password. SFTP is a different protocol that runs inside an encrypted SSH connection.[3]
SFTP and FTPS are the same thing.They are separate tools. SFTP runs over SSH. FTPS is FTP with TLS added.[5] Both protect the password on the way.
Switching to SFTP fixes an old leak.A password already sent over plain FTP may have been seen. Change it as well.
Once the file is on the server, SFTP keeps it safe.SFTP protects the trip. Who can open the stored file depends on the server's settings and accounts.
One shared login is easier and just as safe.A shared login hides who did what and is hard to take away from one person. Give each person or script its own.

What can I do this week?

  • Open your file transfer app and check whether each saved connection says FTP, FTPS or SFTP.
  • Ask your web host whether plain FTP can be turned off on your account.
  • Change any password you know has been used over plain FTP.
  • Ask each supplier who sends you files which method they use.
  • Give each person and each automatic job its own account, not one shared account.

Checklist

  • No saved connection uses plain FTP.
  • Plain FTP is turned off on servers and hosting accounts you control.
  • Passwords once used over plain FTP have been changed.
  • Each person and script has its own account, with access only to the folders it needs.
  • SSH keys are used for sign-in where the server supports them.
  • Logins for people who have left, and old automatic jobs, have been removed.
  • Suppliers who move your files have confirmed they use SFTP, FTPS or a secure sharing service.

Common questions

Is FTP still safe to use?

Plain FTP is not a safe choice for anything private. It sends usernames, passwords and files without encryption, so anyone able to watch the traffic may read them. It can still turn up for public downloads, but private files and logins belong on SFTP, FTPS or a secure sharing service.

What is the difference between SFTP and FTPS?

Both protect your password and files on the way. SFTP is a separate protocol that runs inside SSH, usually on one port. FTPS is the old FTP protocol with TLS encryption added, the same protection websites use. Which one you use mostly depends on what your server or supplier supports.

Do I need special software for SFTP?

Usually not. Most popular file transfer apps support SFTP as well as FTP, and many computers already include a basic command-line SFTP tool. Often you only change the protocol setting in the saved connection, and the port, then sign in with your SFTP details.

My host says "SFTP is enabled". Am I done?

Not quite. Check that your own saved connections use it, and that plain FTP is turned off, not just available alongside it. Then change any password that was used over FTP, and make sure each person and automatic job has its own account.

What about scripts that upload files automatically?

Automatic jobs need their own accounts too. These accounts are non-human identities (NHIs): digital identities that let a machine, application or automated process connect to other systems without a person. Give each job its own SFTP account that reaches only its folder. Sign it in with an SSH key. Record who owns it, so it can be removed later.

Where next?

Ready for the detail? Read the practitioner guide: Retiring Cleartext Protocols. It goes further into finding every plain-text service on a network, planning replacements, and handling old devices that cannot be upgraded.

Also useful:

Related NHI Mgmt Group resources: Managed File Transfer (MFT) Security Guide · SSH Key Management Guide · Encryption for Beginners

Key terms

FTP
An old set of rules for copying files to and from a server that sends passwords and files as readable text.
SFTP
A way to copy files that runs inside an encrypted SSH connection.
FTPS
FTP with TLS encryption added to protect the login and the files.
SSH
A secure way to connect to a remote computer that scrambles the traffic and checks the server.
SSH key
A pair of matching files used to sign in over SSH instead of a password.
Encryption
Scrambling data so only someone with the right key can read it.
Cleartext transmission
Sending data across a network without encryption, so anyone watching can read it.

Sources and further reading

  1. RFC 959, File Transfer Protocol (FTP). J. Postel and J. Reynolds, IETF, October 1985. https://www.rfc-editor.org/rfc/rfc959.html, accessed 28 Nov 2026.
  2. RFC 2577, FTP Security Considerations (Informational). IETF, May 1999. https://www.rfc-editor.org/rfc/rfc2577.html, accessed 28 Nov 2026.
  3. sftp(1) manual page. OpenBSD / OpenSSH project. https://man.openbsd.org/sftp.1, accessed 28 Nov 2026.
  4. RFC 4253, The Secure Shell (SSH) Transport Layer Protocol (Standards Track). IETF, January 2006. https://www.rfc-editor.org/rfc/rfc4253.html, accessed 28 Nov 2026.
  5. RFC 4217, Securing FTP with TLS (Standards Track). IETF, October 2005. https://www.rfc-editor.org/rfc/rfc4217.html, accessed 28 Nov 2026.
  6. SSH File Transfer Protocol, draft-ietf-secsh-filexfer-13 (expired Internet-Draft, not an RFC). IETF Datatracker, July 2006. https://datatracker.ietf.org/doc/draft-ietf-secsh-filexfer/, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.