Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Windows Server

How to Connect to FTP or SFTP with WinSCP (Ports Explained)

How to connect to FTP with WinSCP guide by 99RDP

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.

Comparison of protocols in WinSCP: SFTP, SCP, FTP, FTPS and WebDAV
Which protocol in WinSCP

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 WinSCPDefault portUse it for
SFTP22Linux VPS and any server with SSH. Encrypted; the best default.
SCP22Old SSH servers without SFTP
FTP (no encryption)21Legacy hosting; avoid over the internet
FTP + TLS/SSL Explicit encryption21FTPS on most cPanel/Plesk hosts
FTP + TLS/SSL Implicit encryption990Older FTPS servers
WebDAV80 (443 with TLS)Nextcloud, SharePoint-style storage
Amazon S3443S3 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.

Steps to connect with WinSCP: choose the protocol, enter host and port, log in, accept the host key, transfer files
Connect with WinSCP

Step 3: Create the connection

  1. Start WinSCP. The Login window opens with New Site selected.
  2. Choose the File protocol. For FTPS, choose FTP and then set Encryption to TLS/SSL Explicit encryption.
  3. Enter the Host name and check the Port number.
  4. Enter the User name and Password.
  5. 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

  1. Click Save, give the site a name, and leave "Save password" unticked on shared computers.
  2. Click Login.
  3. 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.
Diagram of the WinSCP Commander interface: local files on the left, server files on the right
The Commander view

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.

Minakshi, Server Administrator L1 at 99RDP
Written byMinakshiServer Administrator L1, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Windows Server guides

All Windows Server guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services