What Is SFTP? SFTP vs FTP vs FTPS, Port 22 and How to Connect

Pritam Sonone
Verified byPritam Sonone
Read time10 min read
What Is SFTP? SFTP vs FTP vs FTPS, Port 22 and How to Connect
Share
Quick answer

SFTP (SSH File Transfer Protocol) moves files between your computer and a server over an encrypted SSH connection, normally on port 22. FTP (port 21) sends everything unencrypted. FTPS is FTP with TLS added (port 21 explicit, 990 implicit). For a website, use SFTP with a free client like FileZilla, WinSCP or Cyberduck, and copy the host, username and port from your hosting panel.

If you run a WordPress site, sooner or later you need to touch its files: upload a theme, fix a broken plugin, or download a backup. SFTP is the safe way to do that. This guide explains it in plain words, compares it with FTP and FTPS, and shows where to find your SFTP details on Hostinger, Cloudways and SiteGround.

Every fact here comes from the official docs of the protocol, the client or the host, read on 4 Dec 2026. I did not log in to any hosting account for this guide, so the panel steps are as each host documents them (not tested by me today).

On this page10 sections

What is SFTP?

SFTP stands for SSH File Transfer Protocol. Many people also call it Secure File Transfer Protocol. The OpenBSD manual for the sftp command describes it as a file transfer program, similar to FTP, which performs all operations over an encrypted SSH transport.

OpenBSD sftp manual with the line about an encrypted ssh transport highlighted, 4 Dec 2026
OpenBSD sftp manual with the line about an encrypted ssh transport highlighted, 4 Dec 2026

Think of SSH as a locked tunnel between your computer and the server. SFTP sends files through that tunnel. Anyone watching the network sees scrambled data, not your password or your files.

  • What you use it for: uploading and downloading website files, editing config files like wp-config.php, and grabbing backups.
  • What you need: a host name or IP, a username, a password or SSH key, and a port number.
  • What you use to connect: an SFTP client such as FileZilla, WinSCP or Cyberduck, or the sftp command in a terminal.

SFTP vs FTP vs FTPS

The three names look alike, but they work differently.

FTPFTPSSFTP
Full nameFile Transfer ProtocolFTP over TLSSSH File Transfer Protocol
Encrypted?NoYes, with TLSYes, inside SSH
Default port2121 (explicit) or 990 (implicit)22
LoginUsername and passwordUsername and passwordPassword or SSH key
StandardRFC 959RFC 4217Runs over SSH, RFC 4253
Good for websites today?Only if nothing else is offeredYesYes, the usual choice

Read 4 Dec 2026.

FTP: the old way, with no encryption

FTP dates from the early days of the internet. RFC 959 assigns it port 21. It sends your username, password and files as plain data. Hostinger’s FTP help page still shows how to connect with the encryption set to “Only use plain FTP” on port 21.

Hostinger FTP help with the Only use plain FTP encryption setting highlighted, 4 Dec 2026
Hostinger FTP help with the Only use plain FTP encryption setting highlighted, 4 Dec 2026

FTPS: FTP with a TLS lock added

FTPS keeps FTP but wraps it in TLS, the same kind of encryption used by HTTPS. WinSCP’s FTPS page explains two modes. In explicit mode, the client connects on the normal FTP port and asks for encryption. In implicit mode, the whole session is encrypted from the start, on IANA port 990 for control and 989 for data.

WinSCP FTPS documentation with implicit FTPS on port 990 highlighted, 4 Dec 2026
WinSCP FTPS documentation with implicit FTPS on port 990 highlighted, 4 Dec 2026

SFTP: file transfer inside SSH

SFTP is not FTP at all. It is part of the SSH world. The SSH standard, RFC 4253, says that over TCP/IP the server normally listens on port 22, a port registered with IANA for SSH. So SFTP uses port 22 unless your host changed it.

Cloudways sums up why it recommends SFTP: it adds a layer of security, and the transferred data is encrypted, so it is not sent in clear text.

Cloudways help with Transferred data is encrypted, so it is not sent in clear text highlighted, 4 Dec 2026
Cloudways help with Transferred data is encrypted, so it is not sent in clear text highlighted, 4 Dec 2026

Which SFTP port should you use?

Port 22 is the default, but many shared hosts move SSH to another port. Use the port your host shows, not the default. Here is what three hosts document:

HostSFTP portLoginWhere the details are
Hostinger (Premium and higher)65002FTP/SSH username and the main domain’s FTP passwordSSH Access section of the hosting dashboard
Cloudways22Master or Application credentialsApplication Management, Access Details, SSH/SFTP
SiteGround18765SSH key (private key file in FileZilla)Site Tools, Devs, SSH Keys Manager

Read 4 Dec 2026.

If you type port 22 on Hostinger or SiteGround, the connection will simply fail or time out. That is the most common SFTP mistake.

Where to find your SFTP details in hosting panels

Hostinger (hPanel)

Hostinger SFTP help with SFTP is available on Premium and higher hosting plans highlighted, 4 Dec 2026
Hostinger SFTP help with SFTP is available on Premium and higher hosting plans highlighted, 4 Dec 2026

Hostinger’s SFTP help page says SFTP is available on Premium and higher hosting plans, which include SSH access. First turn on SSH access. Then copy these from the SSH Access section:

  • Host: the FTP IP shown in the SSH Access section.
  • User: your FTP/SSH username.
  • Port: 65002.
  • Password: the same as the FTP password of your main domain. You can set a new one, or create an SSH-only password.
Hostinger SFTP help with Port 65002 highlighted, 4 Dec 2026
Hostinger SFTP help with Port 65002 highlighted, 4 Dec 2026

Hostinger also notes that FTP is not supported for sites built with Hostinger AI Builder. Comparing hosts? Read our Hostinger review.

Cloudways

Cloudways help with Set Port 22 highlighted in the FileZilla steps, 4 Dec 2026
Cloudways help with Set Port 22 highlighted in the FileZilla steps, 4 Dec 2026

The Cloudways guide says you need Master credentials (whole server) or Application credentials (one app), plus the server’s public IP. Open the application, go to Access Details and scroll to SSH/SFTP. SSH access is on by default for the master user, but you must turn it on for application users. Cloudways also asks you to add your IP under Security, Shell Access.

In FileZilla, Cloudways tells you to type sftp:// followed by the server IP in Host, enter the username and password, and set port 22.

SiteGround

SiteGround uses SSH keys instead of a password. Its FileZilla SFTP article (last updated 16 May 2024) gives these steps:

  1. Create an SSH key pair in Site Tools, Devs, SSH Keys Manager (or Multiple SFTP access in the Client Area for several sites).
  2. Copy the private key from the key’s Actions menu and save it in a file on your computer.
  3. In FileZilla, open Settings, then SFTP, and click Add keyfile. FileZilla offers to convert it to its own format.
  4. Use port 18765 and the username and host from the key’s Actions menu.
  5. On the first connection, accept the server fingerprint.

SiteGround warns that its SSH keys open all files of the website and cannot be limited to one folder, so store them safely. Its pages blocked my screenshot tool, so there is no SiteGround screenshot here.

How to connect with an SFTP client

FileZilla (Windows, macOS, Linux)

FileZilla home page with The FileZilla Client supports FTP, FTP over TLS (FTPS) and SFTP highlighted, 4 Dec 2026
FileZilla home page with The FileZilla Client supports FTP, FTP over TLS (FTPS) and SFTP highlighted, 4 Dec 2026

FileZilla says its free, open source client supports FTP, FTP over TLS (FTPS) and SFTP. The download page listed version 3.72.1 as the latest stable client on 4 Dec 2026. Download it only from filezilla-project.org.

  1. Open FileZilla.
  2. In the Quickconnect bar, type sftp:// and your host or IP in Host.
  3. Enter your username and password.
  4. Enter your host’s SFTP port (22, 65002, 18765 or whatever your panel shows).
  5. Click Quickconnect.
  6. If you see Unknown host key, compare the fingerprint with the one in your hosting panel. If it matches, tick Always trust this host and click OK.
  7. Drag files between the left (your computer) and right (the server) panes.

For a site you use often, open File, Site Manager, click New Site, choose SFTP – SSH File Transfer Protocol as the protocol, and save the details. Hostinger’s guide shows this exact path.

WinSCP (Windows)

WinSCP home page with FTP, FTPS, SCP, SFTP, WebDAV or S3 highlighted, 4 Dec 2026
WinSCP home page with FTP, FTPS, SCP, SFTP, WebDAV or S3 highlighted, 4 Dec 2026

WinSCP calls itself a free SFTP, SCP, S3 and FTP client for Windows. Its protocols page says the default is SFTP, with a fallback to SCP. In the Login dialog, pick SFTP, then enter host, port, username and password, and click Login.

Cyberduck (macOS and Windows)

Cyberduck has SFTP built in. Its docs cover login with a password or with public key authentication through OpenSSH, Pageant and password managers such as 1Password and Bitwarden. It checks server fingerprints against ~/.ssh/known_hosts and reads settings like Port and IdentityFile from ~/.ssh/config. Choose SFTP (SSH File Transfer Protocol) in Open Connection, then fill in server, port, username and password or key.

Terminal (sftp command)

If the OpenSSH sftp command is installed on your computer, you can skip the app. The command is:

sftp -P 65002 username@your-server-ip

Swap 65002 for your host’s port. Note the capital -P for the port, as in the OpenBSD manual. Then use put file to upload, get file to download, and exit to quit.

SFTP safety tips

  • Prefer SSH keys over passwords when your host supports them, and protect the private key with a passphrase.
  • Check the host key fingerprint on the first connection. A changed fingerprint later can mean the server was rebuilt, or that something is wrong.
  • Do not save passwords in a shared computer’s FTP client.
  • Create a separate SFTP or FTP account for a developer, and delete it when the job is done.
  • Take a backup before you edit or delete files on a live site.
  • Keep your client updated. Cloudways says old clients can fail with modern security settings.

Common SFTP errors and fixes

ErrorLikely causeFix
Connection timed outWrong port, or SSH not enabledUse the port from your panel (Hostinger 65002, SiteGround 18765). Turn on SSH access.
Connection refusedYour IP is not allowed, or the network blocks the portCloudways: add your IP under Shell Access. Try another network.
Authentication failedWrong username, password or keyCopy details again from the panel. Reset the password if needed.
Unknown host keyFirst connection to this serverCompare the fingerprint with the panel, then trust it.
Connected over FTP by mistakeNo sftp:// in QuickconnectType sftp:// before the host, or choose SFTP in Site Manager.

Read 4 Dec 2026.

These fixes come from the host guides quoted above. Cloudways also suggests checking that your internet provider is not blocking SFTP connections.

Do you even need SFTP for WordPress?

Not always. You can install themes and plugins from the WordPress dashboard. You need SFTP (or your host’s file manager) when the dashboard is not enough: a plugin breaks the site, you must edit wp-config.php, or you want a full copy of your files.

New to how hosting works? Read domain name and web hosting explained and what is PHP, the language WordPress files are written in.

Frequently asked questions

What is SFTP in simple words?

SFTP (SSH File Transfer Protocol) is a way to copy files between your computer and a server over an encrypted SSH connection. Your password and your files travel scrambled, so people on the same network cannot read them.

What port does SFTP use?

The SSH standard (RFC 4253) says servers normally listen on port 22, so SFTP uses port 22 by default. Hosts can change it: Hostinger uses 65002 and SiteGround uses 18765. Always use the port your host shows.

Is SFTP the same as FTPS?

No. SFTP runs inside SSH. FTPS is the old FTP protocol with TLS encryption added on top, using port 21 (explicit) or 990 (implicit). Both are encrypted, but they are different protocols and need different settings.

Is SFTP better than FTP?

For security, yes. Plain FTP does not encrypt the connection. Cloudways says SFTP data is encrypted, so it is not sent in clear text. Use plain FTP only when your host gives you nothing else.

Can I use FileZilla for SFTP?

Yes. FileZilla’s home page says the free FileZilla Client supports FTP, FTPS and SFTP. In Quickconnect, type sftp:// before the host or choose SFTP in Site Manager, then enter the port your host gives.

Does Hostinger support SFTP?

Yes, on Premium and higher hosting plans, which include SSH access. Hostinger’s help page lists port 65002 and says the SFTP password is the same as the FTP password of your main domain.

Why does FileZilla show an Unknown host key message?

It appears the first time you connect to an SSH server. Compare the fingerprint with the one your host shows (Hostinger shows it on the SSH Access page). If they match, tick Always trust this host and click OK.

About this page

Pritam Sonone
Written and checked by · Updated 4 Dec 2026Pritam SononeFounder, Digital Pritam

WordPress developer and designer, builds sites for clients · WordCamp Asia Communication Co-Lead · 14K+ subscribers on the DigitalPritam YouTube channel

How we checked

  • Official docs of Hostinger, Cloudways, SiteGround, FileZilla, WinSCP, Cyberduck and OpenBSD read on 4 Dec 2026
  • Port numbers from the RFCs and each host's own help page
  • No hosting accounts were logged in to; panel steps are as documented, not tested today
  • Screenshots annotated by us

How I got these facts

I read each page listed below on 4 Dec 2026 from India. SiteGround’s page blocked my browser tool, so I read it through a web reader the same day. Port numbers come from the standards (RFC 959, RFC 4253) and from each host’s help page. I did not sign in to Hostinger, Cloudways or SiteGround for this guide.

Sourceshostinger.com ×2support.cloudways.comsiteground.comfilezilla-project.org ×2winscp.net ×3docs.cyberduck.ioman.openbsd.orgrfc-editor.org ×3Show 14
  1. hostinger.com/support/5972689-how-to-connect-to-your-hosting-using-sftp-in-hostinger
  2. hostinger.com/support/4480505-how-to-connect-to-your-hosting-using-ftp-in-hostinger
  3. support.cloudways.com/en/articles/5119485-guide-to-connecting-to-your-application-using-ssh-sftp
  4. siteground.com/kb/how_to_establish_sftp_connection_to_hosting_with_filezilla
  5. filezilla-project.org
  6. filezilla-project.org/download.php?type=client
  7. winscp.net/eng/index.php
  8. winscp.net/eng/docs/protocols
  9. winscp.net/eng/docs/ftps
  10. docs.cyberduck.io/protocols/sftp
  11. man.openbsd.org/sftp
  12. rfc-editor.org/rfc/rfc4253.html
  13. rfc-editor.org/rfc/rfc959.html
  14. rfc-editor.org/rfc/rfc4217.html
Hostinger setup checklist PDF coverPDF
Free checklist

The Hostinger setup checklist

12 steps we run on every site, plus an email when a big hosting sale opens.

Free. Unsubscribe in one click.

ShareAdd to Preferred Sources
Pritam Sonone
Written and tested by

Pritam Sonone

Pritam Sonone has built audiences online since 2016. He founded the Marathi farming channel Amhi Kastkar (380K+ subscribers), grew Carnot Technologies' Simha Kit channel from 166 to 10,000 subscribers in nine months, and has drawn millions of visits to his WordPress news sites from Google Discover and search. An ex-banker, he is now Operations Manager at Indian Farmer, founder of DigiShivar AI, a Josh Talks and WordCamp speaker, and a WordPress contributor.