Skip to content

SSH & Remote Access18 min read

SSH File Transfer on Windows: 6 Methods That Work (2026)

SSH file transfer on Windows, step by step: copy files to Linux with scp, sftp, WinSCP, PSCP, rsync in WSL or CtrlOps. Every command tested by hand.

SSH File Transfer on Windows: a 300-file upload timed with scp (369.3s), PSCP, WinSCP, sftp, CtrlOps (18.4s) and rsync (10.6s)

SSH file transfer on Windows needs no extra software for most jobs. Use scp for one-off files and sftp to browse the server first. Pick WinSCP for a free drag-and-drop GUI and rsync through WSL for large or repeat syncs. For daily transfers and edits on several Linux servers, we pick CtrlOps.

Small mistakes cause most failed transfers. You run scp inside your PuTTY session and a stray localdir file appears on the server. Or a build upload to /var/www stops with Permission denied. This guide is for freelance developers, startup CTOs and agency engineers who push files from a Windows laptop to Linux servers.

To copy files from Windows to Linux, scp and sftp cost nothing and need no install on Windows 10 build 1809 or later. WinSCP adds a free GUI, PSCP suits PuTTY users, and rsync through WSL handles big repeat syncs.

CtrlOps fits daily work on several Linux servers. Match your job to the Best for column.

MethodBest forInstall neededCan resumePrice
scpOne-off files and foldersRun ssh -V. If missing, add OpenSSH ClientNoFree, per the OpenSSH project
sftpBrowsing first, then transferringSame as scpYes: reput, regetSame as scp
WinSCPA free drag-and-drop GUIYesOn SFTP yes, on SCP noFree. Microsoft Store edition $19.99
PSCP and PSFTPYou already use PuTTYYesPSFTP yes: reput, reget. PSCP: none documentedFree
rsync through WSLLarge or repeat transfersYes: WSL, plus rsync on the serverYes: --partialrsync and WSL are free
CtrlOpsDaily transfers and edits on Linux servers, next to terminal workYes, from the Microsoft StoreNo. Keep the tab open on big uploadsFree, $9/mo or $349 lifetime (pricing)
Six ways to move files over SSH from Windows to Linux. Prices verified on November 5, 2026.

No. SSH is the connection. scp and sftp are tools and protocols that move files over it.

OpenSSH 9.0, released in April 2022, made scp use the SFTP protocol by default. The -O flag forces the old SCP protocol. This applies only if your client is 9.0 or later, and Microsoft publishes no OpenSSH version per Windows build. Our test machine printed OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2.

Three years before the 2022 switch, the project wrote:

“The scp protocol is outdated, inflexible and not readily fixed.”

OpenSSH project · April 2019 · 8.0 release notes

You need the OpenSSH client on Windows and 3 things on the server: an account, the SSH port and the SFTP subsystem. The client needs Windows 10 build 1809 or later, or Windows 11.

Two checks confirm both sides: ssh -V in PowerShell and sshd -T on the server.

Check for the OpenSSH client in PowerShell first:

powershell
# Print the OpenSSH client versionssh -V

text
OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2

PowerShell running ssh -V in C:\Users\TSTTechnology\ssh-demo, printing OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2.

If it prints a version, you can use scp and sftp. If PowerShell cannot find ssh, add OpenSSH Client.

On Windows 11, open Settings, then System, then Optional features, select View features and add it. On older Windows 11, the page may be under Settings, then Apps. The download needs internet. Windows 10 was not tested.

Windows Settings at System > Optional features, with a View features button, Optional features history and More Windows features.

You can also use Microsoft's commands in PowerShell as Administrator.

powershell
# Check for OpenSSHGet-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

powershell
# Install the clientAdd-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

On the server, check the SFTP subsystem:

bash
# Show the SFTP subsystem linesudo sshd -T | grep -i subsystem

text
subsystem sftp /usr/lib/openssh/sftp-server

Server shell as ubuntu@ip-172-31-39-249 piping sudo sshd -T into grep -i subsystem, which returns subsystem sftp /usr/lib/openssh/sftp-server.

scp is the quickest way to copy files from Windows to a Linux server when you already know both paths, because it copies files to or from the server with one command.

It ships with the OpenSSH client, takes the source first and the destination second, and marks the server side with user@host:. It cannot resume, so use sftp or rsync for very large files.

Upload a file from Windows to Linux

powershell
# Copy one file to /tmp on the serverscp .\app.zip ubuntu@13.217.10.84:/tmp/

text
app.zip                                       100% 6145KB   1.0MB/s   00:05

PowerShell running scp .\app.zip ubuntu@13.217.10.84:/tmp/, with app.zip reaching 100% at 6145KB and 1.0MB/s in 00:05.

Upload a folder with -r

powershell
# Copy a folder and its contentsscp -r .\site ubuntu@13.217.10.84:/tmp/

text
.env                                          100%   95     0.3KB/s   00:00style.css                                     100%   30     0.1KB/s   00:00photo-1.jpg                                   100%   20KB  33.1KB/s   00:00photo-10.jpg                                  100%  200KB 218.6KB/s   00:00photo-11.jpg                                  100%  220KB 360.1KB/s   00:00photo-12.jpg                                  100%  240KB 388.4KB/s   00:00photo-2.jpg                                   100%   40KB  66.1KB/s   00:00photo-3.jpg                                   100%   60KB  97.7KB/s   00:00photo-4.jpg                                   100%   80KB 130.9KB/s   00:00photo-5.jpg                                   100%  100KB 161.8KB/s   00:00photo-6.jpg                                   100%  120KB 194.2KB/s   00:00photo-7.jpg                                   100%  140KB 226.5KB/s   00:00photo-8.jpg                                   100%  160KB 258.9KB/s   00:00photo-9.jpg                                   100%  180KB 291.3KB/s   00:00index.html                                    100%  153     0.5KB/s   00:00app.js                                        100%   19     0.1KB/s   00:00

PowerShell running scp -r .\site ubuntu@13.217.10.84:/tmp/, listing .env, style.css, photo-1 to photo-12.jpg, index.html and app.js at 100%.

Copy a file from the server to Windows

To copy a file from the server to your local Windows machine, run scp on Windows, not inside the remote shell. There, the copy lands on the server, for example as a stray file named localdir.

This mistake is in a Stack Overflow thread with 896,939 views (Stack Exchange API, checked November 5, 2026). We reproduced it: run inside the server shell, scp showed a normal progress line, gave no error and left a file named localdir on the server.

Server shell as deploy@web01 where scp deploy@localhost:/var/log/app.log localdir saves a file named localdir that file reports as ASCII text.
powershell
# Run on Windows. Copies to the current folderscp ubuntu@13.217.10.84:/var/log/syslog .

text
syslog                                        100% 3859KB   1.0MB/s   00:03

PowerShell running scp ubuntu@13.217.10.84:/var/log/syslog . to download syslog into the current folder, finishing at 100% and 3859KB.

Use a custom port

scp takes capital -P, while ssh takes lowercase -p. On scp, lowercase -p preserves times and modes.

powershell
# Connect on port 2222scp -P 2222 .\app.zip ubuntu@13.217.10.84:/tmp/

text
app.zip                                       100% 6145KB   1.7MB/s   00:03

PowerShell running scp -P 2222 .\app.zip ubuntu@13.217.10.84:/tmp/ to upload over port 2222, with app.zip at 100% and 6145KB.

Handle Windows paths

Quote any path with spaces, and use forward slashes on the Linux side. A lone . means the current folder. In PowerShell, write $env:USERPROFILE, because %USERPROFILE% belongs to Command Prompt.

powershell
# Upload a file with a space in its namescp "$env:USERPROFILE\Desktop\my file.zip" ubuntu@13.217.10.84:/tmp/

text
my file.zip                                   100% 6145KB   1.8MB/s   00:03

PowerShell running scp "$env:USERPROFILE\Desktop\my file.zip" ubuntu@13.217.10.84:/tmp/ with the spaced path quoted, my file.zip at 100%.
PowerShell using scp to copy /var/log/syslog from 13.217.10.84 to $env:USERPROFILE\Desktop, then Test-Path on the file returning True.

sftp opens an interactive session on the server, so you can look around before you move anything. You list folders with ls, upload with put, download with get and set permissions with chmod.

It ships with the same OpenSSH client as scp, so it needs no extra install on Windows 10 build 1809 or later.

powershell
# Open a session. Add -P 2222 for a custom portsftp ubuntu@13.217.10.84

Browse and transfer

Run these inside the session:

CommandWhat it does
ls, llsList the server folder, list the local folder
cd, lcdChange the server folder, change the local folder
put app.zipUpload a file
get app.logDownload a file
put -r site, get -r siteUpload or download a folder
chmod 644 app.zipSet permissions on the server
byeEnd the session
text
Connected to 13.217.10.84.sftp> lsapp.log   big.zip   stackssftp> lls Volume in drive C is Windows Volume Serial Number is 42C6-1821 Directory of C:\Users\TSTTechnology\ssh-demo07-11-26  11:46 AM    <DIR>          .07-11-26  11:38 AM    <DIR>          ..06-11-26  06:30 PM         6,292,533 app.zip07-11-26  11:41 AM        20,971,520 big.zip06-11-26  06:30 PM         6,292,533 file.zip06-11-26  06:30 PM                40 index.html07-11-26  11:39 AM    <DIR>          site07-11-26  11:45 AM         3,951,827 syslog07-11-26  11:39 AM        52,436,923 task-a-50mb.zip07-11-26  11:39 AM    <DIR>          test-folder               6 File(s)     89,945,376 bytes               4 Dir(s)  39,719,243,776 bytes freesftp> put app.zipUploading app.zip to /home/ubuntu/app.zipapp.zip                                       100% 6145KB   1.8MB/s   00:03sftp> get app.logFetching /home/ubuntu/app.log to app.logapp.log                                       100%   29KB  30.3KB/s   00:00sftp> chmod 644 app.zipChanging mode on /home/ubuntu/app.zipsftp> bye

Resume with reput and reget

reput continues an upload and reget continues a download. Both assume the partial copy matches the source, so compare hashes afterward. Inside the session, run reput big.zip or reget big.zip.

PowerShell sftp session to ubuntu@13.217.10.84 running ls, lls, put app.zip, get app.log, chmod 644 app.zip and bye.
PowerShell sftp session where big.zip is 8388608 bytes, reput big.zip resumes the upload, and ls -l then shows 20971520 bytes.

WinSCP is the best free GUI for moving files between Windows and Linux because it gives you two panes and drag and drop over SFTP at no cost.

The latest version is 6.7, from October 14, 2026. It also covers FTP, FTPS, SCP, WebDAV and S3, with folder sync and scripting.

Follow these login steps to connect over SFTP:

  1. Select New Site in the tree on the left.
  2. Set File protocol to SFTP. SFTP is already selected on a new site; the list also offers SCP, FTP, WebDAV and Amazon S3.

    WinSCP Login dialog with the File protocol dropdown open, listing SFTP, SCP, FTP, WebDAV and Amazon S3, and port number 22.
  3. Type the server name or IP address in Hostname. Change Port number only if the server does not use 22.
  4. Enter your Username and Password.

    WinSCP Login dialog set to SFTP with hostname 13.217.10.84, port 22, username ubuntu and an empty password field.
  5. Select Login, or Save if you connect often.
  6. Check the fingerprint at the host key prompt: "Continue connecting to an unknown server and add its host key to a cache?" Select Accept if the fingerprint is correct, or Cancel if it is wrong or you do not know it. The arrow next to Accept holds the other choices, such as Connect Once.

    WinSCP Warning asking to add the host key for 13.217.10.84 (port 22) to the cache, with the ssh-ed25519 fingerprint and an Accept button.
  7. Drag files from File Explorer to the remote panel.

    WinSCP Upload dialog for file 'site' with remote directory /home/ubuntu/*.*, transfer type Binary, and OK, Cancel and Help buttons.
    WinSCP connected to ubuntu@13.217.10.84 with a 78% Uploading dialog sending ssh-demo\site\img\photo-7.jpg to /home/ubuntu/.
    WinSCP after the upload, with the site folder now in the remote /home/ubuntu/ pane next to stacks, app.log, app.zip and big.zip.

Comparing WinSCP with CtrlOps? See CtrlOps vs WinSCP.

Use a key in WinSCP

WinSCP's authentication page says: "The file must be in PuTTY format." If you select an OpenSSH key, WinSCP offers to convert it.

WinSCP Advanced Site Settings on SSH > Authentication, with the Private key file field set to C:\keys\server.ppk.

Resume a WinSCP transfer

Resume works on SFTP, not on SCP.

If you already use PuTTY, PSCP and PSFTP are its command-line file transfer tools. Both come in the MSI installer and as separate .exe files on the download page.

The latest PuTTY is 0.85, from August 16, 2026. The project says it "fixes multiple security issues", so update older copies.

Copy files with PSCP

bat
rem Upload a folder on port 2222 with a PPK keypscp -r -P 2222 -i C:\keys\server.ppk site ubuntu@13.217.10.84:/tmp/

text
The host key is not cached for this server:  13.217.10.84 (port 2222)You have no guarantee that the server is the computer youthink it is.The server's ssh-ed25519 key fingerprint is:  ssh-ed25519 255 SHA256:GUwYN/hqAlRRxER/V+0pa9+30CbBCACnczlWZRhI79cIf you trust this host, enter "y" to add the key to PSCP'scache and carry on connecting.If you want to carry on connecting just once, without addingthe key to the cache, enter "n".If you do not trust this host, press Return to abandon theconnection.Store key in cache? (y/n, Return cancels connection, i for more info) y.env                      | 0 kB |   0.1 kB/s | ETA: 00:00:00 | 100%style.css                 | 0 kB |   0.0 kB/s | ETA: 00:00:00 | 100%photo-1.jpg               | 20 kB |  20.0 kB/s | ETA: 00:00:00 | 100%photo-10.jpg              | 200 kB | 200.0 kB/s | ETA: 00:00:00 | 100%photo-11.jpg              | 220 kB | 220.0 kB/s | ETA: 00:00:00 | 100%photo-12.jpg              | 240 kB | 240.0 kB/s | ETA: 00:00:00 | 100%photo-2.jpg               | 40 kB |  40.0 kB/s | ETA: 00:00:00 | 100%photo-3.jpg               | 60 kB |  60.0 kB/s | ETA: 00:00:00 | 100%photo-4.jpg               | 80 kB |  80.0 kB/s | ETA: 00:00:00 | 100%photo-5.jpg               | 100 kB | 100.0 kB/s | ETA: 00:00:00 | 100%photo-6.jpg               | 120 kB | 120.0 kB/s | ETA: 00:00:00 | 100%photo-7.jpg               | 140 kB | 140.0 kB/s | ETA: 00:00:00 | 100%photo-8.jpg               | 160 kB | 160.0 kB/s | ETA: 00:00:00 | 100%photo-9.jpg               | 180 kB | 180.0 kB/s | ETA: 00:00:00 | 100%index.html                | 0 kB |   0.1 kB/s | ETA: 00:00:00 | 100%app.js                    | 0 kB |   0.0 kB/s | ETA: 00:00:00 | 100%

bat
rem Download to the current folderpscp -i C:\keys\server.ppk ubuntu@13.217.10.84:/var/log/syslog .

text
The host key is not cached for this server:  13.217.10.84 (port 22)...Store key in cache? (y/n, Return cancels connection, i for more info) ysyslog                    | 3878 kB | 1293.0 kB/s | ETA: 00:00:00 | 100%

Command Prompt running pscp -i C:\keys\server.ppk ubuntu@13.217.10.84:/var/log/syslog ., storing the host key with y, and syslog at 100%.

In PSCP, -P sets the port. Lowercase -p preserves timestamps, so do not mix them up. The -i flag needs a key in PPK format. PSCP tries SFTP first, then falls back to SCP.

If Command Prompt shows 'pscp' is not recognized as an internal or external command, operable program or batch file., add the PuTTY folder to PATH or run PSCP from that folder. The 0.85 MSI added C:\Program Files\PuTTY\ to PATH in our install, but a Command Prompt that was already open still showed the error until we opened a new one.

Command Prompt where pscp -V and a pscp -r -P 2222 upload both fail with 'pscp' is not recognized as an internal or external command.
Command Prompt running pscp -r -P 2222 -i C:\keys\server.ppk site ubuntu@13.217.10.84:/tmp/, storing the host key and uploading every file at 100%.

Use PSFTP for a session

PSFTP works like sftp. In our test, running psftp and then open ubuntu@13.217.10.84 2222 crashed PSFTP 0.85 every time (Windows logged an access violation, 0xc0000005). Giving the host on the command line worked. -P sets the port:

bat
psftp -P 2222 -i C:\keys\server.ppk ubuntu@13.217.10.84

text
Using username "ubuntu".Remote working directory is /home/ubuntupsftp> pwdRemote directory is /home/ubuntupsftp> put app.ziplocal:app.zip => remote:/home/ubuntu/app.zippsftp> chmod 644 app.zippsftp> reput big.zipreput: restarting at file position 8388608local:big.zip => remote:/home/ubuntu/big.zippsftp> quit

Command Prompt psftp session on port 2222 with server.ppk running pwd, put app.zip, chmod 644 app.zip, reput big.zip from position 8388608 and quit.

Inside the session, use put -r, reput, reget and chmod. reput and reget assume the remote file or folder has not changed (Chapter 6).

Keep passwords off the command line

The PuTTY manual calls -pw "NOT SECURE" if anybody else uses the same computer. It points you to -pwfile instead.

Moving off PuTTY later? Our PuTTY alternatives for Windows compares the options.

rsync is an incremental file transfer tool, so a repeat sync sends only the files that changed.

On Windows, run it inside WSL (Windows Subsystem for Linux), with rsync installed on the server too. With --partial, a stopped transfer keeps its partial file, so the next run has less left to send.

Install WSL and rsync

Microsoft's install command needs Windows 10 version 2004 (build 19041) or Windows 11, later than the OpenSSH minimum.

powershell
# Install WSLwsl --install

rsync must be on both machines. In WSL, check first, because Ubuntu's image may already have it:

bash
# Check rsync in WSLrsync --version

text
rsync  version 3.4.1  protocol version 32Copyright (C) 1996-2025 by Andrew Tridgell, Wayne Davison, and others.Web site: https://rsync.samba.org/Capabilities:    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,    socketpairs, symlinks, symtimes, hardlinks, hardlink-specials,    hardlink-symlinks, IPv6, atimes, batchfiles, inplace, append, ACLs,    xattrs, optional secluded-args, iconv, prealloc, stop-at, no crtimesOptimizations:    SIMD-roll, no asm-roll, openssl-crypto, no asm-MD5Checksum list:    xxh128 xxh3 xxh64 (xxhash) md5 md4 sha1 noneCompress list:    zstd lz4 zlibx zlib noneDaemon auth list:    sha512 sha256 sha1 md5 md4rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and youare welcome to redistribute it under certain conditions.  See the GNUGeneral Public Licence for details.

WSL Ubuntu terminal running rsync --version, showing rsync version 3.4.1 protocol version 32 with its capabilities and checksum list.

On the server, run sudo apt install rsync on Ubuntu and Debian, or sudo dnf install rsync on RHEL, Rocky and Fedora.

Run the transfer from /mnt/c

WSL mounts your C: drive at /mnt/c. Microsoft advises against working across file systems, mainly for speed.

WSL Ubuntu terminal using stat after rsync -a: /tmp/site-nochmod and its index.html are 777, while /tmp/site is 755 and its index.html 644.

Start with a dry run. The trailing slash on site/ copies the folder's contents, not the folder by name.

bash
# Preview, changes nothingrsync -av --dry-run --chmod=D755,F644 /mnt/c/Users/TSTTechnology/ssh-demo/site/ ubuntu@13.217.10.84:/tmp/site/

text
sending incremental file listcreated directory /tmp/site./.envindex.htmlcss/css/style.cssimg/img/photo-1.jpgimg/photo-10.jpgimg/photo-11.jpgimg/photo-12.jpgimg/photo-2.jpgimg/photo-3.jpgimg/photo-4.jpgimg/photo-5.jpgimg/photo-6.jpgimg/photo-7.jpgimg/photo-8.jpgimg/photo-9.jpgjs/js/app.jssent 476 bytes  received 111 bytes  130.44 bytes/sectotal size is 1,597,737  speedup is 2,721.87 (DRY RUN)

WSL Ubuntu terminal running rsync -av --dry-run --chmod=D755,F644 on the site folder to 13.217.10.84:/tmp/site/, ending with (DRY RUN).
bash
# Transfer, keep partial files, show progressrsync -a --partial --progress --chmod=D755,F644 /mnt/c/Users/TSTTechnology/ssh-demo/site/ ubuntu@13.217.10.84:/tmp/site/

text
sending incremental file list./.env             95 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=18/20)index.html            153 100%   74.71kB/s    0:00:00 (xfr#2, to-chk=17/20)css/css/style.css             30 100%    2.09kB/s    0:00:00 (xfr#3, to-chk=13/20)img/img/photo-1.jpg         20,480 100%    1.15MB/s    0:00:00 (xfr#4, to-chk=12/20)img/photo-10.jpg        204,800 100%    9.30MB/s    0:00:00 (xfr#5, to-chk=11/20)img/photo-11.jpg        225,280 100%    8.26MB/s    0:00:00 (xfr#6, to-chk=10/20)img/photo-12.jpg        245,760 100%    7.32MB/s    0:00:00 (xfr#7, to-chk=9/20)img/photo-2.jpg         40,960 100%    1.15MB/s    0:00:00 (xfr#8, to-chk=8/20)img/photo-3.jpg         61,440 100%    1.58MB/s    0:00:00 (xfr#9, to-chk=7/20)img/photo-4.jpg         81,920 100%    1.95MB/s    0:00:00 (xfr#10, to-chk=6/20)img/photo-5.jpg        102,400 100%    2.22MB/s    0:00:00 (xfr#11, to-chk=5/20)img/photo-6.jpg        122,880 100%    2.44MB/s    0:00:00 (xfr#12, to-chk=4/20)img/photo-7.jpg        143,360 100%    2.58MB/s    0:00:00 (xfr#13, to-chk=3/20)img/photo-8.jpg        163,840 100%    2.65MB/s    0:00:00 (xfr#14, to-chk=2/20)img/photo-9.jpg        184,320 100%    2.66MB/s    0:00:00 (xfr#15, to-chk=1/20)js/js/app.js             19 100%    0.27kB/s    0:00:00 (xfr#16, to-chk=0/20)

If the transfer stops, run the same command again. --partial keeps the partial file, so the next run should finish faster.

WSL Ubuntu terminal running rsync -a --partial --progress --chmod=D755,F644 to 13.217.10.84:/tmp/site/, each file at 100% down to to-chk=0/20.

Keep your key in WSL

Keep your private key in WSL's ~/.ssh, not under /mnt/c, because ssh ignores a key that others can access.

CtrlOps fits daily transfers on several Linux servers because files, edits and the terminal share one SSH connection. Its visual File Manager lets you browse, search the current folder, upload, delete and edit anything your SSH user can access. You skip a second app, a second login and typed paths on both sides.

CtrlOps is a local-first desktop app for AI-assisted Linux server management, on Windows, macOS and Linux desktops. The File Manager works over the same SSH connection as the terminal, with no separate host setup to maintain.

  1. After you connect to the server, open File Manager in the left menu.

    CtrlOps Connect to Server dialog with Quick Connect ssh ubuntu@13.217.10.84, server name Ubuntu VPS, port 22, username ubuntu and Connect SSH.
  2. Drag files from Explorer onto the file list to upload them.

    CtrlOps File Manager for Ubuntu VPS at /home/ubuntu with a Drop to upload overlay saying files and folders will be uploaded to /home/ubuntu.
    CtrlOps File Manager with an Uploading 2 items toast and a Transferring 2 items panel listing task-a-50mb.zip and file.zip as Preparing.
  3. Use the upload button in the toolbar and choose Folder to upload a folder.

    CtrlOps File Manager at /home/ubuntu with the green upload button menu open, offering Files and Folder options.
    CtrlOps File Manager with a Transfers complete panel for test-folder (File 300/300, 300 files, 4.8 MB) and test-folder now in /home/ubuntu.
  4. Open a file such as .env, change the line and select Save.

    CtrlOps editor open on .env marked Unsaved, with APP_ENV=production, APP_DEBUG=false, APP_URL, DB_HOST=127.0.0.1 and DB_PORT=5432.
    CtrlOps File Manager in /home/ubuntu/site showing a File saved toast, with .env at 93 B updated just now beside css, img, js and index.html.

CtrlOps can also expand a ZIP on the server. The File Manager docs cover every toolbar button.

“the file manager feature is the one nobody talks about but everyone needs. separate SFTP client is such a pain when you just want to edit one config file.”

Abhishek Akbari · Senior Full-Stack Developer at Torinit · Product Hunt review

Upload to /tmp, then move the file into place with sudo and set its owner.

This keeps your normal SSH user for transfers and keeps root login off. It takes 3 commands plus a backup, and the backup gives you a one-line undo if the new file breaks the site.

Do not enable root SSH just for transfers.

bash
# Back up the old filesudo cp -a /var/www/app/index.html /var/www/app/index.html.bak

bash
# Move the upload into placesudo mv /tmp/index.html /var/www/app/

bash
# Set the owner. Use your web server usersudo chown www-data:www-data /var/www/app/index.html

bash
# Undo: restore the backupsudo mv /var/www/app/index.html.bak /var/www/app/index.html

Server shell as deploy@web01 backing up /var/www/app/index.html, sudo mv /tmp/index.html into place, chown www-data, then restoring the backup.

On Ubuntu and Debian, the web server user is www-data. We confirmed it on Ubuntu 26.04.1 with getent passwd www-data.

On RHEL, Rocky and Fedora, it is nginx or apache, depending on the web server. Then fix the SELinux label. We did not test this step on a RHEL-family server in this round.

bash
# Moved files keep the wrong labelsudo restorecon -Rv /var/www/app/

Need help reading permission bits like 644? The chmod calculator translates them.

Two one-time steps shorten every transfer. Replace the password with an Ed25519 key, then replace user@host with a Host alias in your SSH config.

After that, scp app.zip prod:/tmp/ uploads with no password, user name or host to type. Each change takes one line to undo.

Use a key

Create a key with ssh-keygen. Microsoft's key guide uses Ed25519 as the default.

powershell
# Create an Ed25519 keyssh-keygen -t ed25519

text
Generating public/private ed25519 key pair.Enter file in which to save the key (C:\Users\TSTTechnology/.ssh/id_ed25519): C:\Users\TSTTechnology/.ssh/id_ed25519_demoEnter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in C:\Users\TSTTechnology/.ssh/id_ed25519_demoYour public key has been saved in C:\Users\TSTTechnology/.ssh/id_ed25519_demo.pubThe key fingerprint is:SHA256:7T9jNEhZ9QM2xFoqnumTp4BDaFfRayq1b6cV1h0BNbE tsttechnology@TST

We already had an id_ed25519, so at the file prompt we typed a new name, id_ed25519_demo, instead of overwriting it.

PowerShell running ssh-keygen -t ed25519, saving the key as C:\Users\TSTTechnology/.ssh/id_ed25519_demo and printing its SHA256 fingerprint.

Install the public key from PowerShell, because ssh-copy-id is not in Microsoft's command list. Our C:\Windows\System32\OpenSSH folder had no ssh-copy-id either.

powershell
# Add the public key to the serverGet-Content $env:USERPROFILE\.ssh\id_ed25519_demo.pub | ssh ubuntu@13.217.10.84 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

To undo, remove that line from ~/.ssh/authorized_keys on the server. Then point scp at the key:

powershell
# Upload with the keyscp -i $env:USERPROFILE\.ssh\id_ed25519_demo .\app.zip ubuntu@13.217.10.84:/tmp/

text
app.zip                                       100% 6145KB   1.6MB/s   00:03

PowerShell piping id_ed25519_demo.pub over ssh into ~/.ssh/authorized_keys on 13.217.10.84, then scp -i with that key uploading app.zip.

Our SSH key management best practices cover passphrases and key rotation.

Add a Host alias

Add this block to C:\Users\you\.ssh\config. To undo, delete the block.

ssh-config
Host prod    HostName 13.217.10.84    User ubuntu    IdentityFile ~/.ssh/id_ed25519_demo

Now prod covers the host, user and key:

powershell
# Upload with the aliasscp app.zip prod:/tmp/

text
app.zip                                       100% 6145KB   1.8MB/s   00:03

PowerShell running scp app.zip prod:/tmp/ with an SSH config alias named prod, and app.zip reaching 100% at 6145KB.

Convert a key for PuTTY

PSCP and PSFTP need a PPK key. Convert your OpenSSH key in PuTTYgen:

  1. Open the Conversions menu, select Import and pick your OpenSSH private key. PuTTYgen confirms the import.

    PuTTYgen Notice: successfully imported foreign key (OpenSSH SSH-2 private key, new format), use Save private key to store it in PuTTY format.
  2. Check the loaded key: PuTTYgen shows its public key and comment.

    PuTTY Key Generator with an ssh-ed25519 public key loaded, key comment tsttechnology@TST, empty passphrase fields and a Save private key button.
  3. Select Save private key to save it as a PPK file. If the key has no passphrase, PuTTYgen asks you to confirm first.

    PuTTYgen Warning asking Are you sure you want to save this key without a passphrase to protect it?, with Yes and No buttons.

The free OpenSSH to PPK converter does the same in your browser.

Hash the file on both sides and compare the two values. If they match, every byte arrived. Get-FileHash uses SHA256 by default, the same algorithm as sha256sum, so the outputs compare directly. Letter case does not matter, because Windows prints uppercase and Linux prints lowercase.

powershell
# Hash on WindowsGet-FileHash .\file.zip

text
Algorithm       Hash                                                                   Path---------       ----                                                                   ----SHA256          7F9D3C8BF9A0DF23E5DB4E812B7092E6AF2B25AB08898C70D8E44534291EFED4       C:\Users\TSTTechnolog...

PowerShell running Get-FileHash .\file.zip, returning SHA256 7F9D3C8BF9A0DF23E5DB4E812B7092E6AF2B25AB08898C70D8E44534291EFED4.
bash
# Hash on the serversha256sum /tmp/file.zip

text
7f9d3c8bf9a0df23e5db4e812b7092e6af2b25ab08898c70d8e44534291efed4  /tmp/file.zip

Server shell running sha256sum /tmp/file.zip, returning 7f9d3c8bf9a0df23e5db4e812b7092e6af2b25ab08898c70d8e44534291efed4.

PSCP uploaded the 50 MB zip fastest (18.2 seconds) and CtrlOps slowest (30.3 seconds). For the 300-file folder, rsync (10.6 seconds) and CtrlOps (18.4 seconds) beat scp, sftp, WinSCP and PSCP (288.7 to 369.3 seconds). The log download took 8.2 to 14.0 seconds with every method. CtrlOps needed one pasted ssh string to set up.

We timed 3 tasks for each method: same files, same network, key login, median of 3 runs.

  • Task A: upload a 50 MB zip to /tmp/.
  • Task B: upload a 300-file folder, 4.8 MB in total, to /tmp/test-folder/.
  • Task C: download one log file, /var/log/syslog (about 3.9 MB).

Server: AWS EC2 t3a.medium (2 vCPU, 4 GB) in us-east-1, Ubuntu 26.04.1 LTS. Date: November 7, 2026. Network: about 2.5 MB/s upload to the server, measured from Task A.

MethodSetup steps before the first transferTask A (seconds)Task B (seconds)Task C (seconds)
scpNone. Built into Windows 1120.5369.310.6
sftpNone. Built into Windows 1123.0288.712.9
WinSCP3: install, enter host and user, set the PPK key under Advanced22.5353.210.7
PSCP3: install PuTTY, convert the key to PPK, accept the host key18.2364.98.2
rsync through WSL3: install WSL and Ubuntu, answer the first-run prompt, copy the key into WSL ~/.ssh21.610.614.0
CtrlOps File Manager2: install, paste ssh ubuntu@13.217.10.84 into New connection30.318.413.8
Median of 3 runs with key login, from Windows 11 to Ubuntu 26.04.1 LTS on AWS EC2 in us-east-1, November 7, 2026.

These numbers come from one network, one server and one day, so they do not prove a method is faster everywhere.

Seven errors cause most failed SSH file transfers on Windows, and each has a short fix. The most common is running scp inside the remote shell instead of in PowerShell on your PC. Match the exact error text in the first column, then apply the fix in the last column.

ErrorCauseFix
'pscp' is not recognized as an internal or external command, operable program or batch file.The PuTTY folder is not on PATH, or the Command Prompt was opened before PuTTY was installedAdd C:\Program Files\PuTTY\ to PATH, or open a new Command Prompt
ubuntu@13.217.10.84: Permission denied (publickey).The server did not accept your keyCheck the -i path and the server's authorized_keys file
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ... Host key verification failed.The server's key no longer matches your known_hosts fileFirst check why the key changed. Only then run ssh-keygen -R host
ssh: connect to host 10.255.255.1 port 22: Connection timed outThe host or port cannot be reachedCheck the host, the port and the firewall
C:\WINDOWS\System32\OpenSSH\scp.exe: dest open "/var/www/index.html": Permission deniedYour SSH user cannot write to that folderUpload to /tmp, then move the file with sudo and set its owner
No error. The progress line looks normal, but a file named localdir appears on the serverYou ran scp on the server, not on WindowsExit the remote shell and run it in PowerShell. Remove the stray file on the server
subsystem request failed on channel 0 then C:\WINDOWS\System32\OpenSSH\scp.exe: Connection closedThe server has no SFTP subsystem, and new scp needs itUse scp -O as the fallback
PowerShell scp .\app.zip prod:/tmp/ failing with WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!, Host key verification failed.
PowerShell running ssh-keygen -R localhost to clear old known_hosts entries, then scp .\app.zip prod:/tmp/ accepting the new key and uploading.
PowerShell scp -P 2223 to deploy@localhost failing with subsystem request failed on channel 0, then scp -O on the same port uploading app.zip.

Still stuck on the connection itself? The connection issues guide walks through each check.

Pick by how often you transfer and how many servers you touch. Use scp for one-off copies and sftp when you want to look before you move. WinSCP suits a free GUI, PSCP suits PuTTY users and rsync suits large repeat syncs. CtrlOps is the best pick in 2 of these 9 situations.

Your situationBest pickRunner-up
One file, one timescpsftp
You want to browse the server before copyingsftpWinSCP
Free GUI on WindowsWinSCPPSFTP
You already use PuTTY .ppk keysPSCPWinSCP
Large folder you sync oftenrsync through WSLsftp with reput
Locked-down work PC with no installsscpsftp
Windows server, FTP host or S3 bucket as the targetWinSCPPSFTP for SFTP-only hosts
Daily work on 5+ Linux serversCtrlOpsWinSCP plus PuTTY
Upload, edit a config and run a command in one passCtrlOpsscp plus ssh

After the upload, the next step is usually a restart or a deploy. See how to deploy a Node.js app on a Linux VPS, or compare terminals in the best SSH clients for Windows.

Moving files from Windows to Linux starts with tools you already have. scp and sftp cover most one-off jobs, and a key plus a Host alias shortens every command after that.

Hash anything that matters after the copy, and route root-owned folders through /tmp. Those 2 habits prevent the silent failures that cost the most time.

If you move and edit files on several Linux servers every week, try CtrlOps on your real servers: the Free plan covers 2 servers, and the 14-day trial unlocks every feature. A few weeks of real work will show whether one window beats switching between tools.

  • No. SSH is the encrypted connection to a server, and SFTP is a file transfer protocol that runs inside that connection. Most servers with SSH also accept SFTP through the SFTP subsystem.
  • Run ssh -V. If it prints a version, you can use scp and sftp with nothing else to install. If ssh is missing, add OpenSSH Client through Optional features. The minimum is Windows 10 build 1809.
  • For commands, use scp and sftp. For a GUI, use WinSCP, whose classic installer and portable build are free.
  • Open PowerShell and run sftp ubuntu@13.217.10.84. Use put to upload, get to download, lcd to change your local folder and bye to exit. For a visual option, connect with WinSCP and choose SFTP as the protocol.
  • The OpenSSH client is missing or not on your PATH. Add OpenSSH Client from Optional features, then open a new PowerShell window. If the error names pscp, add the PuTTY folder to PATH or run PSCP from that folder.
  • In PowerShell on Windows, run scp ubuntu@13.217.10.84:/var/log/syslog $env:USERPROFILE\Desktop. %USERPROFILE% belongs to Command Prompt, not PowerShell.
  • With OpenSSH 9.0 or later, scp also uses the SFTP protocol. In our task A: scp took 20.5 seconds and sftp 23.0 seconds (median of 3 runs), so scp was slightly faster. That is one network and one server, so time it yourself.
  • scp cannot, and PSCP documents no resume option. sftp and PSFTP can, with reput and reget. WinSCP can on SFTP, and rsync can with --partial.
  • Yes, for many readers. The classic and portable builds are free, and version 6.7 came out in October 2026. It suits free drag and drop, folder sync and scripted transfers on a Windows PC.
  • For daily transfers and edits on Linux servers, over the same SSH connection, CtrlOps can. You can add a server by pasting an ssh user@host string. Keep WinSCP if you need other protocols, folder sync or scripted transfers.
  • CtrlOps runs on macOS (Apple Silicon and Intel), Windows and Linux desktops, with the same File Manager on each. There is no mobile app, so SSH from a phone needs a separate client.
  • Do not use CtrlOps for Windows servers, which also rules out Windows-to-Windows transfers. Skip it if you need FTP, FTPS, WebDAV or S3 targets, folder sync or scripted transfers. Also skip it if you need more than 2 servers and want to pay nothing: the CtrlOps Free plan covers 2 servers.

Was this guide useful?

One click helps us decide what to test and write next.

Share this post

Explore article with AI tools

Written by

Daxesh Italiya

Co-Founder & CTO, TST Technology

Daxesh Italiya is a Co-Founder of TST Technology and leads engineering on CtrlOps. He writes about deployment, Linux administration and the day-to-day work of keeping production servers healthy.

Keep reading

Your privacy preferences. We use product analytics to improve CtrlOps. Google Analytics cookies and live chat stay off until you allow them. Cookie policy