Transferring Data from a Windows Server to a Windows PC Using WinSCP
Copy files between a Windows server and your PC with WinSCP: switch on the server's built-in SSH server, connect over SFTP, transfer, and keep folders in sync.
3 min readBy Daniel
Reviewed by the AmazingRDP technical team

Switching on the SSH server needs administrator rights. An admin RDP gives you a Windows server where you are the administrator. See Admin RDP from $9.99
WinSCP is a free file-transfer program for Windows. It shows your PC's folders on the left, the server's on the right, and copies between them over an encrypted connection. It is far quicker and more reliable for large or many files than dragging them through a Remote Desktop window.
One thing guides often leave out: WinSCP is only the client. The server needs something to connect to, an SSH server. Windows Server 2019 and later have one built in; it only needs switching on.
1. Switch on the SSH server (on the Windows server)
Open PowerShell as administrator on the server:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType Automatic
The installation also adds a firewall rule for port 22. Check it:
Get-NetFirewallRule -Name *OpenSSH-Server* | Select-Object Name, Enabled
If nothing is listed, add the rule, ideally limited to your own address:
New-NetFirewallRule -DisplayName "OpenSSH Server" -Direction Inbound -Protocol TCP -LocalPort 22 -RemoteAddress 203.0.113.10 -Action Allow
2. Install WinSCP (on your PC)
Download it from the official site, winscp.net, and install it. It is needed on your PC only, not on the server.
3. Connect
In the login window enter:
| Field | Value |
|---|---|
| File protocol | SFTP |
| Host name | The server's IP address |
| Port number | 22 |
| User name, Password | The Windows account you use on the server |
Click Save to keep the session, then Login. The first time, WinSCP shows the server's key and asks whether to trust it. Accept it; if the same question appears again later without a reason, stop and find out why.
4. Transfer
- The left panel is your PC, the right panel is the server. On the server side you start in your user folder; type
/C:/in the path box to reach drive C. - Drag files or folders from one side to the other, or select them and press
F5. - Transfers run in a queue at the bottom. A broken transfer of a large file can be resumed.
5. Keep two folders the same
Open Commands, Synchronize. Choose the direction (server to PC for a download backup) and WinSCP copies only what is new or changed. Preview shows what it will do first.
Safer sign-in
- Use a long password for the account; port 22 on the internet is tried by bots all day.
- Limit the firewall rule to your own address, as in step 1.
- For regular use, set up key sign-in: create a key in WinSCP (Tools, Run PuTTYgen) and add its public part on the server.
If it does not connect
- "Connection refused" or a timeout. The
sshdservice is not running, or a firewall blocks port 22. On the server:Get-Service sshd. - "Access denied". Wrong user name or password. For a local account, enter the name alone, without the server's name in front.
- Files in use. Open databases and running programs' files may refuse to copy. Stop the program or export the data first.
Without SSH: through Remote Desktop
For a few small files you can copy and paste between your PC and the Remote Desktop window, or share a local drive into the session (Local Resources, More, Drives in the Remote Desktop client). If that fails, see how to fix copy and paste in RDP. On a shared RDP this is the only way, because you cannot install or switch on services there; on an admin RDP or a VPS you can use WinSCP as described. Related: enable a port through PowerShell.
Questions
Do I need WinSCP on the server as well?
No. WinSCP runs on your PC. The server needs an SSH server, which Windows Server 2019 and later include.
Which port does WinSCP use?
Port 22 for SFTP.
Can I resume a broken transfer?
Yes. WinSCP can resume large files over SFTP.
Is WinSCP free?
Yes. It is free, open-source software.