Guide · File Utilities

How to Connect and Transfer Files with WinSCP

You'll transfer files with WinSCP by uploading one harmless text file to an SFTP directory, then downloading a copy to check it. You need Windows, WinSCP and authorized server details. Allow a short setup session; getting the correct host fingerprint or account permissions can take longer than the transfer.

One white document moving across a violet bridge from a small desktop computer to a charcoal server tower.
On this page

1. Collect the connection details #

Ask the server administrator for the hostname, SSH/SFTP port, username, authentication method, allowed directory and SSH host-key fingerprint. The common SSH port is 22, but use the supplied value.

The host key identifies the server. Your private authentication key identifies your account. They are different keys, and entering one doesn't replace verification of the other.

WinSCP's fingerprint guidance recommends obtaining the fingerprint through a trusted channel. You can compare it with the key shown on the first connection. Don't approve a mismatched fingerprint merely because the username looks right.

Use an ordinary account with permission for the chosen directory. You don't need a server administrator account to transfer a practice document.

2. Create a small practice file #

Create a local folder named sftp-practice. Inside it, save transfer-check.txt with:

WebIndexly transfer practice
Purpose: verify one upload and one download.
This file contains no passwords or account details.

Create a second empty local folder named sftp-download-check. Keeping upload and download folders separate makes it easier to see whether the download actually produced a file.

If you need an editor, the code-editor section covers several free options. The file should be plain text, not a word-processing document with a renamed extension.

3. Enter the SFTP login settings #

Open WinSCP. In the Login dialog choose New Site, set File protocol to SFTP, and fill in Host name, Port number and User name.

For password access, enter the supplied password when requested. For a private key, choose Advanced, then SSH → Authentication, and set Private key file to your local key.

The authentication page documents key formats and conversion tools. If WinSCP offers to convert a key into its supported format, retain the original and save the converted copy separately. Never upload the private key into the remote practice directory.

Choose Login. The connection guide documents the same sequence.

4. Verify the server fingerprint #

On a first connection, compare the fingerprint in the host-key prompt with the trusted fingerprint supplied by the administrator. Continue only when they agree.

A saved verified key helps WinSCP detect later changes. If a future connection reports a changed key, ask whether the server was rebuilt or its host keys replaced. Verify the new value before updating the saved key.

After login, the remote pane should show the account's accessible directory. Its root can be a restricted account directory; it doesn't have to show the whole server filesystem.

5. Transfer files with WinSCP to the practice destination #

Use the Commander interface so local and remote files are visible together. In the local pane, open sftp-practice. In the remote pane, open the allowed disposable destination supplied by the administrator.

Select transfer-check.txt and choose Upload. Review the destination in the transfer dialog, then confirm the transfer. The upload guide also documents dragging the file from the local pane to the remote pane.

When the transfer finishes, refresh the remote view if needed. You should see transfer-check.txt in the chosen remote directory. The status should report a completed transfer, with no unresolved error dialog.

Don't select an entire parent directory for this exercise. One file gives you a clear result and avoids unrelated server changes.

6. Download to the separate check folder #

Point the local pane at sftp-download-check. Select the remote transfer-check.txt and choose Download. Confirm the local destination.

Open the downloaded copy and compare its three lines with the original. Check the filename too: it should remain transfer-check.txt, without an unexpected extra extension.

You now have three visible pieces of evidence for your own transfer: the original local file, the remote file and the downloaded copy. For ongoing server recovery, also arrange a separate backup with retained versions.

7. Save the connection without sharing credentials #

If you'll use this server again, save its site entry with a descriptive name. Decide whether to save credentials according to the workstation's access policy.

WinSCP documents an optional master password for stored site information. A shared computer needs particular care: a convenient saved connection can also make an account available to the next user.

Disconnect when finished. Keep the practice file if the administrator wants it for later checks; otherwise remove only the disposable remote file you created.

Known problems #

Returning to a parent directory fails

In a September 2025 support thread, a user reported a parent-directory permission error and later traced it to the FileZilla Server version. The maintainer suggested the Parent directory toolbar control and a session log. Try the allowed path directly, then ask the server administrator to inspect the account and server if that path also fails.

The server responds slowly after authentication

A June 2025 thread describes slow directory access in both WinSCP and FileZilla after a hosting change. The maintainer pointed toward the server. Check whether another client sees the same delay, and give the hosting administrator a normal session log for the small failing operation.

Troubleshooting #

ProblemLikely causeFix
Connection refusedWrong host/port or SFTP unavailableConfirm supplied SSH/SFTP settings
Authentication failsWrong account, password or private keyRecheck the authentication method and authorized key
Host-key mismatchWrong destination or changed server keyVerify the fingerprint through a trusted channel
Upload permission deniedAccount can't write to that directoryUse the assigned directory or ask its administrator
File absent from expected folderDifferent remote path selectedInspect the transfer destination and remote location
Downloaded text differsWrong file or content conversionCompare filenames and use binary transfer when exact bytes matter

The WinSCP troubleshooting guide covers logs and connection diagnostics.

Variations #

Upload several prepared assets

Select only the required files and review the transfer destination once more. Inspect the queue until all selected transfers finish. FileZilla is another choice if colleagues use different desktop systems.

Edit a remote text file

WinSCP supports a remote editing workflow. Start with the disposable practice file and inspect the saved result before applying it to a real configuration. MobaXterm pairs a file browser with a Windows terminal if those tasks belong together.

Completion checklist #

  • The server fingerprint matches the trusted value.
  • The protocol is SFTP and the remote path is correct.
  • The practice upload finished without an error.
  • The remote file appears in the assigned directory.
  • A separate downloaded copy contains the original three lines.
  • The connection is saved according to workstation policy or closed without saved credentials.

Next steps #

Use WinSCP alternatives if you need another desktop or a different transfer workflow. For a shared codebase, consider the Git-client section before relying on several people editing the same server file.

C
Chris McClureCo-founder & Editor, WebIndexly

Chris McClure is a tech blogger and co-founder of WebIndexly, with a strong interest in SEO, web architecture, user experience and the technologies that shape the modern web. He focuses on making complex technical topics easier to understand and more useful for developers, creators and businesses…