Free, independent guides since 2010

Hosting & domains

FTP, SFTP and SSH: getting files onto your server safely

How to upload and manage website files: why plain FTP is outdated, using SFTP with a file transfer client, what SSH is for, keys versus passwords, and alternatives like Git deployment.

<guide section="Hosting & domains" type="article" read="1 min"/>

In the early days of this site, every webmaster had an FTP program open all day. FTP still exists, but it was designed in an era when nobody worried about eavesdropping. Here is how to move files safely in 2026.

The protocols

ProtocolEncrypted?Use it?
FTPNo – passwords travel in plain textAvoid
FTPSYes (TLS)OK if SFTP is not available
SFTPYes (via SSH)Recommended
SSHYesFor command-line access

Using SFTP

  1. Find the SFTP host, port (usually 22) and username in your hosting panel.
  2. Install a file transfer client such as FileZilla, Cyberduck or WinSCP.
  3. Connect, and you see your local files on one side and the server on the other.
  4. Upload to the correct web folder, often public_html or www.

SSH for more control

SSH gives you a terminal on the server. Useful for unpacking archives, running WordPress command-line tools, checking logs or making backups quickly.

Plain text
ssh user@example.com
cd public_html
ls -la

Keys instead of passwords

An SSH key pair consists of a private key on your computer and a public key on the server. It is much harder to crack than a password and saves typing. Many hosts let you upload your public key in the control panel. Protect your private key with a passphrase and never share it.

Modern alternatives

  • Git deployment: push your changes, and the host updates the site.
  • Static hosting platforms that deploy from a repository (see static site hosting).
  • Control panel file managers for quick edits.

Learn the basics of version control in Git for website owners.

Frequently asked questions

What is the difference between SFTP and FTPS?

SFTP runs over SSH, FTPS is classic FTP with TLS encryption. Both encrypt your connection; SFTP is the more common choice today.

Do I still need FTP with a modern host?

Often not. Many hosts offer a file manager, Git deployment or automatic deploys. SFTP remains handy for quick fixes and backups.