How to Transfer Files to a Windows VPS: RDP Drive Redirection, Clipboard and SFTP

Sooner or later you need to move files to your Windows VPS: an installer, a database backup, a project folder. There are three practical ways to do it. RDP drive redirection, the clipboard, and SFTP. Each one fits a different job. This guide shows how to set up each method, where it breaks, and which one to pick.
In the examples, 203.0.113.10 is your VPS and 198.51.100.25 is your own public IP. Replace both.
Quick comparison
| Method | Best for | Extra port needed | Resume after a drop |
|---|---|---|---|
| Clipboard | Text and a few small files | No | No |
| RDP drive redirection | Occasional folders and medium files | No | Yes, with robocopy /Z |
| SFTP (OpenSSH) | Large files, frequent or scripted transfers | Yes, TCP 22 | Yes, in most clients |
| Download on the server | Files already on the internet | No | Depends on the source |
Method 1: RDP drive redirection
Drive redirection makes a disk or folder from your computer visible inside the remote session. The data travels inside the existing RDP connection, so you do not open any new port on the server.
Windows (Remote Desktop Connection)
Run
mstscand click Show Options.Open the Local Resources tab and click More... under "Local devices and resources".
Tick Drives, or expand it and tick only the drive you need. Connect.
Inside the session, open This PC. Your drive appears as "C on YOURPC". Its network path is \\tsclient\C. If you save the connection as an .rdp file, the setting is this line:
drivestoredirect:s:*
Use * for all drives, or a single letter such as D:\; to share only that drive.
macOS (Windows App)
Edit the saved PC, open Folders, turn on Redirect folders and add the folder you want. It appears under \\tsclient in the session.
Copy large folders with robocopy
Explorer copy works, but it does not resume if the connection drops. For anything larger than a few hundred MB, use robocopy in a terminal on the server:
robocopy \\tsclient\D\Projects C:\Data\Projects /E /Z /R:3 /W:5
/E copies subfolders, /Z uses restartable mode so an interrupted file continues instead of starting over, and /R:3 /W:5 retries three times with five seconds between attempts. Run the same command again after a disconnect and robocopy skips files that already match.
When it does not work
If
\\tsclientis empty, the server may block it by policy. Check "Do not allow drive redirection" under Computer Configuration, Administrative Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host, Device and Resource Redirection.Speed depends on your upload bandwidth and RDP traffic. Moving the window around or playing video in the session slows the copy.
One security note: while a drive is redirected, programs on the server can read and write it. Redirect only the folder you need, and only on servers you control.
Method 2: Clipboard copy and paste
With Clipboard ticked on the Local Resources tab (it is on by default), you can copy text or files on your computer and paste them into the session, and the other way round. It is the fastest option for a config snippet or a small file.
It has limits. There is no progress you can rely on for big files, no resume, and a long paste can freeze Explorer until it finishes. As a rule of thumb, keep clipboard transfers to small files and switch to drive redirection or SFTP for anything large.
If copy and paste suddenly stops working, restart the clipboard helper inside the session. It does not end your session:
taskkill /IM rdpclip.exe /F
start rdpclip.exe
If it never works, check the server policy "Do not allow Clipboard redirection" in the same Device and Resource Redirection folder.
Method 3: SFTP with the built-in OpenSSH Server
For large or regular transfers, SFTP is the most reliable choice. It is fast, resumable in most clients, and easy to script. Windows Server 2019 and later include OpenSSH Server as an optional feature; on Windows Server 2025 it may already be present but not running. These commands are safe either way. Run them in PowerShell as Administrator:
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Server*'
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType Automatic
Get-NetFirewallRule -Name *OpenSSH-Server* | Select-Object Name, Enabled
Setup normally creates a firewall rule for TCP 22 that allows everyone. Limit it to your own IP so the port is not open to password-guessing bots:
Set-NetFirewallRule -Name OpenSSH-Server-In-TCP -RemoteAddress 198.51.100.25
Connect and copy
Any SFTP client works, for example WinSCP or FileZilla: protocol SFTP, port 22, your Windows user name and password. From a terminal on Windows 10/11, macOS or Linux:
scp ./backup.zip [email protected]:C:/Users/Administrator/Downloads/
sftp [email protected]
Inside sftp, put uploads and reput resumes an upload that was cut off.
Use a key instead of a password
One detail catches many people. For accounts in the Administrators group, Windows OpenSSH does not read the user's own .ssh\authorized_keys. It reads one shared file. Put your public key there and set its permissions:
Add-Content -Path C:\ProgramData\ssh\administrators_authorized_keys -Value "ssh-ed25519 AAAA...your-public-key... you@laptop"
icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"
Test the key login in a new window. Only when it works, set PasswordAuthentication no in C:\ProgramData\ssh\sshd_config and run Restart-Service sshd.
Other options worth knowing
Download directly on the server. If the file is already online (an installer, a release, a cloud storage link), download it on the VPS. The server's connection is usually faster than your home upload.
curl.exeis built into Windows Server 2019 and later:curl.exe -L -o C:\Temp\setup.zip https://example.com/setup.zipDo not open SMB to the internet. Mapping the server as a network drive over port 445 from home is tempting. File sharing over the public internet is a common attack target. If you need it, run it over a VPN.
Tips that save time
Pack many small files into one archive. Ten thousand small files transfer far slower than one archive of the same size. Windows includes
tar:tar -a -cf project.zip projectCheck the file arrived intact. Run
Get-FileHash .\backup.zip -Algorithm SHA256on both machines and compare the hashes, especially for database backups.Check free space first. A 20GB transfer to a disk with 15GB free fails near the end.
Get-PSDrive Cshows the free space.
Run it on IM HOST
IM HOST Windows VPS RDP plans start at $8.99/month (2 cores, 4GB RAM) with full Administrator access, so you can enable OpenSSH, set firewall rules and redirect drives as shown above. Cloud VPS adds dedicated vCPU and RAM and a free automatic backup every 3 days. Moving a whole website rather than a few files? Our free migration service moves files, databases and email with no downtime. Support is available 24/7 from engineers, with no setup fees and a 30-day money-back guarantee.
More from our blog
Discover more practical guides and product insights from the IM Host team.
View all articles