
WinSCP is a free, open-source file transfer client for Windows that speaks SFTP, SCP, FTP, FTPS, WebDAV and Amazon S3. It's the easiest way to move files between your PC and a server, whether that's a Linux VPS over SFTP or a web host over FTP. This guide shows how to set up a connection, which port WinSCP uses for each protocol, how to transfer and edit files, and how to fix the most common connection errors.
Quick answerOpen WinSCP, choose the File protocol (SFTP for a Linux server, FTP for most web hosting), enter the Host name, Port number (22 for SFTP, 21 for FTP), User name and Password, then click Login.
Which port does WinSCP use?
WinSCP fills in the default port when you pick a protocol. You only change it if the server uses a custom port.
| Protocol in WinSCP | Default port | Use it for |
|---|---|---|
| SFTP | 22 | Linux VPS and any server with SSH. Encrypted; the best default. |
| SCP | 22 | Old SSH servers without SFTP |
| FTP (no encryption) | 21 | Legacy hosting; avoid over the internet |
| FTP + TLS/SSL Explicit encryption | 21 | FTPS on most cPanel/Plesk hosts |
| FTP + TLS/SSL Implicit encryption | 990 | Older FTPS servers |
| WebDAV | 80 (443 with TLS) | Nextcloud, SharePoint-style storage |
| Amazon S3 | 443 | S3 and S3-compatible object storage |
FTP also uses a range of extra ports for data in passive mode, decided by the server. If those are blocked, you can log in but directory listings fail.
Step 1: Download and install WinSCP
Download WinSCP from the official site, winscp.net, or install it with winget install WinSCP.WinSCP. During setup, choose the Commander interface (two panels: your PC on the left, the server on the right) if you're used to classic file managers, or Explorer for a Windows Explorer-like view.
Step 2: Get your server details
You need:
- Host name: the server's IP address or a host name such as
ftp.example.com. - Protocol and port: from your hosting panel or provider (see the table).
- User name and password, or an SSH private key for SFTP.
For a 99RDP Linux VPS, use SFTP on port 22 with the root or user login from your welcome email.
Step 3: Create the connection
- Start WinSCP. The Login window opens with New Site selected.
- Choose the File protocol. For FTPS, choose FTP and then set Encryption to TLS/SSL Explicit encryption.
- Enter the Host name and check the Port number.
- Enter the User name and Password.
- For key-based SFTP login, click Advanced → SSH → Authentication and select your private key file (WinSCP converts OpenSSH keys to PuTTY's .ppk format for you).
Step 4: Save and log in
- Click Save, give the site a name, and leave "Save password" unticked on shared computers.
- Click Login.
- On the first SFTP connection, WinSCP shows the server's host key fingerprint. Check it if you can, then click Accept. For FTPS, accept the server's certificate if it's self-signed and you trust the server.
Step 5: Transfer and edit files
- Upload: drag files from the left panel (or Windows Explorer) to the right panel. Download: drag the other way.
- Edit in place: double-click a remote text file to open it in WinSCP's editor or your own editor; saving uploads it automatically.
- Keep folders in sync: use Commands → Synchronize to upload only changed files.
- Permissions: on SFTP, right-click a file → Properties to change owner and permissions (for example 644 for files, 755 for folders).
- Background transfers: large transfers can run in the queue while you keep browsing.
Step 6: Disconnect
Use Session → Disconnect or close the tab. Your saved site stays in the Login window for next time.
Troubleshooting connection errors
- "Network error: Connection timed out": wrong host or port, or a firewall blocks it. For SFTP, check that port 22 is open on the server (
sudo ufw allow OpenSSH). - "Connection refused": the service isn't running on that port, for example SFTP selected on an FTP-only host.
- Login works but the listing hangs (FTP): passive ports are blocked. Ask the host for the passive range, or try switching passive mode off under Advanced → Connection.
- "Access denied": wrong password, or root login disabled on the server. Use a normal user, or a key.
- Host key warning on an existing site: the server was reinstalled or its key changed. Confirm with your provider before accepting.
Frequently asked questions
What port does WinSCP use?
Port 22 for SFTP and SCP, 21 for FTP and explicit FTPS, 990 for implicit FTPS, and 443 for S3 and secure WebDAV.
How do I connect to an FTP server with WinSCP?
Choose FTP as the protocol, enter the host, port 21, user name and password, set encryption to TLS/SSL Explicit if the server supports it, and click Login.
Should I use SFTP or FTP?
SFTP whenever the server supports it. It's encrypted and uses a single port. Plain FTP sends passwords unencrypted.
Can WinSCP connect to a Linux VPS?
Yes. Use SFTP on port 22 with your SSH user and password or key; no extra server software is needed.


