Site AI Auditvon Internet Solutions

SFTP vs FTP: Upload Website Files Without Exposing Passwords

1. November 20267 Min. LesezeitSicherheit & SSL
SFTP vs FTP: Upload Website Files Without Exposing Passwords

Short answer: Plain FTP sends your user name, password and files across the network without encryption, so anyone who can see the traffic can read them. SFTP, which runs over SSH, and FTPS, which adds TLS to FTP, both encrypt the connection. For website uploads, choose SFTP when your host offers it, use keys or strong passwords, and switch plain FTP off.

What FTP is and why it is a problem

File Transfer Protocol is one of the oldest ways to move files between your computer and a web server. For decades, web designers have used it to upload pages, images and plugins. It was designed in a time when networks were smaller and trusted, so it has no built-in protection. Everything is sent in the clear: the commands, the login details and the contents of the files.

On a modern network that is a serious weakness. Public wireless networks, shared offices, infected computers and compromised routers all give someone a place to watch traffic. A captured FTP password gives the watcher the same access as you, including the ability to upload malware to your site. Many hacked websites are traced back to stolen FTP credentials, not to weaknesses in the software itself.

What SFTP is

SFTP stands for SSH File Transfer Protocol. Despite the similar name, it is not FTP with a coat of paint. It is a different protocol that runs inside an SSH connection, the same secure channel that administrators use for remote command access. All of the traffic is encrypted, and the server proves its identity to your client with a key that you can check.

What FTPS is

FTPS is the old FTP protocol with TLS encryption added, in the same way that HTTPS is HTTP with TLS. It encrypts the login and the data, using certificates. It is secure when set up correctly, but it is more complicated than SFTP. FTP uses separate connections for commands and for data, and firewalls need to allow a range of extra ports. Misconfiguration may cause failed transfers or fall back to plain, unprotected mode. If your host offers both, SFTP is usually simpler and more reliable. The article on the difference between SSL and TLS explains the encryption that FTPS borrows.

Comparing the three

FeatureFTPFTPSSFTP
Encrypted loginNoYesYes
Encrypted filesNoYesYes
Runs onFTPFTP with TLSSSH
Typical port2121 or 99022
Firewall friendlinessComplexComplexSimple
Key-based loginNoClient certificates onlyYes

How to switch

  1. Check what your host offers. Look in the hosting panel or documentation for SFTP or SSH access. Some shared plans enable it, others need a request.
  2. Create a separate account. Give each person or tool their own user, restricted to the folders they need. Do not share one master login.
  3. Change your client settings. In a file transfer program, choose the SFTP protocol, enter the host name, the port and the user, and accept the server fingerprint after checking it with your host.
  4. Test an upload. Upload and delete a harmless file to confirm that everything works.
  5. Turn off plain FTP. Once everyone has switched, disable the old service, so that nobody falls back to it by habit.
  6. Change the password. If the old password has ever been sent over plain FTP, treat it as exposed and replace it.

Use keys, not only passwords

An SSH key pair has a private part that stays on your computer and a public part that you give to the server. Logging in proves that you hold the private key, without sending a secret over the network. Protect the private key with a passphrase, store it only on devices you control and remove the public key from the server when a person leaves. This is the same principle as in the advice on developer access and offboarding. If a host only supports passwords, use a long unique password from a password manager, and add two-step protection to the hosting account itself.

Other habits for safer uploads

Common mistakes

If you already suspect that credentials have leaked, follow the steps in the guide to recovering a hacked website: change all passwords, check recent changes to files and look for hidden accounts.

If you manage a website for a client, put the access method in your handover notes. Write down which protocol is used, which accounts exist, who owns the keys and where the credentials are stored. When the project ends, remove your own access and ask the client to change any shared password. This small piece of paperwork prevents the common case in which a former contractor still holds a working login years later, and it makes later security reviews far easier.

It is also worth asking your host about the surrounding controls. Can access be limited to certain addresses? Is there a log of file transfers? Can the account be locked quickly in an emergency? Hosts that offer these features make it easier to respond when something looks wrong. Even on a basic plan, you can usually enable two-step login for the control panel and set an alert for new logins. These measures, together with encrypted transfer, turn file access from the weakest link in the chain into a well-guarded door.

Finally, remember backups. A secure upload method protects against theft of credentials, but it does not protect against a mistake. Keep recent copies of your files and database somewhere separate from the web server, and test that you can restore them, as described in the guide to a website backup strategy.

One last tip is to test from the point of view of a stranger. Ask a colleague to connect with the new settings from a different network, and confirm that the old plain FTP connection no longer works. If it still does, the switch is not finished, and the old door remains open for anyone who knows the address.

How Site AI Audit helps

Site AI Audit does not test your hosting login or your upload settings. It checks the public side of your site’s security: the SSL certificate and its expiry, the redirect from HTTP to HTTPS, security headers and exposed software versions. It also reviews SEO, speed and e-mail authentication. The first check is free, covers up to 50 pages and needs no sign-up. You can run a free check of your website or see the plans for weekly monitoring and alerts when something breaks.

Related reading

The bottom line

Plain FTP exposes your password and your files to anyone who can watch the connection. SFTP and FTPS fix that by encrypting the transfer, and SFTP is usually the simpler choice. Switch your clients, give each person their own limited account, prefer keys, and turn plain FTP off for good. The change takes an afternoon and closes one of the most common doors into small websites.

FAQ

Is SFTP the same as FTP over SSL?

No. SFTP runs inside an SSH connection, while FTP over SSL, called FTPS, is FTP with TLS added. Both are encrypted, but they are different protocols.

Which is more secure, SFTP or FTPS?

Both are secure when configured properly. SFTP is easier to set up and to protect with keys, so it is the usual recommendation for website owners.

Does my hosting plan support SFTP?

Many do, but some basic plans offer only FTP or FTPS. Check the hosting panel or ask support, and consider moving if a host offers no secure option.

Do I need to change my password after switching?

Yes, if it was ever used over plain FTP. Anyone who captured it can still use it, so replace it with a new, strong one.

Can I use SFTP from WordPress?

Yes. Most desktop clients and editors support it, and updates inside WordPress can run without FTP at all when file permissions are set correctly.

#TLS#Web hosting#Website security
Prüfen Sie Ihre eigene Website — kostenlos.Was Sie auf Ihrer Website beheben sollten — und wo Sie anfangen.
Kostenlos starten

Mehr aus dem Blog

Alle Artikel →
Internet Solutions

Mehr von unserem Team

Entwickelt von Internet Solutions. Probieren Sie auch unsere anderen Produkte aus — jedes spart Ihnen auf seine eigene Weise Zeit.

internet-solutions.net ↗