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.

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.
| FTP | FTPS | SFTP | |
|---|---|---|---|
| Full name | File Transfer Protocol | FTP over TLS | SSH File Transfer Protocol |
| Encrypted? | No | Yes, with TLS | Yes, inside SSH |
| Default port | 21 | 21 (explicit) or 990 (implicit) | 22 |
| Login | Username and password | Username and password | Password or SSH key |
| Standard | RFC 959 | RFC 4217 | Runs over SSH, RFC 4253 |
| Good for websites today? | Only if nothing else is offered | Yes | Yes, 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.

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.

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.

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:
| Host | SFTP port | Login | Where the details are |
|---|---|---|---|
| Hostinger (Premium and higher) | 65002 | FTP/SSH username and the main domain’s FTP password | SSH Access section of the hosting dashboard |
| Cloudways | 22 | Master or Application credentials | Application Management, Access Details, SSH/SFTP |
| SiteGround | 18765 | SSH 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’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 also notes that FTP is not supported for sites built with Hostinger AI Builder. Comparing hosts? Read our Hostinger review.
Cloudways

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:
- Create an SSH key pair in Site Tools, Devs, SSH Keys Manager (or Multiple SFTP access in the Client Area for several sites).
- Copy the private key from the key’s Actions menu and save it in a file on your computer.
- In FileZilla, open Settings, then SFTP, and click Add keyfile. FileZilla offers to convert it to its own format.
- Use port 18765 and the username and host from the key’s Actions menu.
- 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 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.
- Open FileZilla.
- In the Quickconnect bar, type sftp:// and your host or IP in Host.
- Enter your username and password.
- Enter your host’s SFTP port (22, 65002, 18765 or whatever your panel shows).
- Click Quickconnect.
- 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.
- 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 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
| Error | Likely cause | Fix |
|---|---|---|
| Connection timed out | Wrong port, or SSH not enabled | Use the port from your panel (Hostinger 65002, SiteGround 18765). Turn on SSH access. |
| Connection refused | Your IP is not allowed, or the network blocks the port | Cloudways: add your IP under Shell Access. Try another network. |
| Authentication failed | Wrong username, password or key | Copy details again from the panel. Reset the password if needed. |
| Unknown host key | First connection to this server | Compare the fingerprint with the panel, then trust it. |
| Connected over FTP by mistake | No sftp:// in Quickconnect | Type 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
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 ×2·support.cloudways.com·siteground.com·filezilla-project.org ×2·winscp.net ×3·docs.cyberduck.io·man.openbsd.org·rfc-editor.org ×3Show 14
- hostinger.com/support/5972689-how-to-connect-to-your-hosting-using-sftp-in-hostinger
- hostinger.com/support/4480505-how-to-connect-to-your-hosting-using-ftp-in-hostinger
- support.cloudways.com/en/articles/5119485-guide-to-connecting-to-your-application-using-ssh-sftp
- siteground.com/kb/how_to_establish_sftp_connection_to_hosting_with_filezilla
- filezilla-project.org
- filezilla-project.org/download.php?type=client
- winscp.net/eng/index.php
- winscp.net/eng/docs/protocols
- winscp.net/eng/docs/ftps
- docs.cyberduck.io/protocols/sftp
- man.openbsd.org/sftp
- rfc-editor.org/rfc/rfc4253.html
- rfc-editor.org/rfc/rfc959.html
- rfc-editor.org/rfc/rfc4217.html
PDFThe Hostinger setup checklist
12 steps we run on every site, plus an email when a big hosting sale opens.
Free. Unsubscribe in one click.


