How To Connect And Transfer Files With WinSCP (2026)
Quick answer
- Start WinSCP, choose the File protocol (SFTP for an SSH server), type the Hostname, Username and Password in the Login dialog, then click Login.
- To upload, drag files from the local panel to the remote panel or choose Files > Upload; to download, select remote files and choose Files > Download.
- Click Save in the Login dialog to keep the site, and fill in Port number only when the server uses a non-standard port.
Applies to: WinSCP for Windows (steps from the WinSCP documentation; the WinSCP downloads page lists version 6.7.1 today)
WinSCP is a free Windows program for moving files between your PC and a server, and its Login dialog is the first thing you see after you start it.
The WinSCP documentation explains the whole job in three parts: connect, save the site, then upload or download.
This guide follows those documentation pages so you can connect over SFTP or FTP and move your first files in a few minutes.
Table of Contents
- Quick answer: the whole job in four moves
- What to have ready before you start
- How to connect to a server
- What each Login dialog field does
- Default ports
- Save the site so you do not retype it
- How to upload files
- How to download files
- The transfer options dialog
- Transfer settings worth knowing
- If the connection fails
- Sources
Quick answer: the whole job in four moves
| Step | What to do | Where |
|---|---|---|
| 1 | Pick the File protocol and enter Hostname, Username and Password | Login dialog, New Site |
| 2 | Click Login (or Save first to keep the site) | Login dialog |
| 3 | Upload by dragging files to the remote panel or pressing F5 | Main window |
| 4 | Download with Files > Download or by dragging to a local folder | Main window |
What to have ready before you start
The WinSCP guide says to collect the hostname or IP address, the protocol, your username and your password before you open the program.
It warns that the hostname may differ from your website’s domain, so for web hosting you should use the server hostname your provider gives you.
If you do not know these details, the guide says to ask your IT department, your university IT support or your web host.
The WinSCP downloads page offers a setup executable, a Microsoft Store listing, an MSI package and portable executables.
How to connect to a server
- Start WinSCP, and the Login dialog opens.
- Select the New Site node in the left tree.
- Choose the File protocol: pick SFTP for an SSH server, or pick FTP for plain FTP or FTPS.
- Type the server name in the Hostname box.
- Type your account name in the Username box and your password in the Password box.
- Click Login to connect.
The documentation says Hostname is the only mandatory field on the page, and WinSCP prompts you for a missing username at login.
For FTPS, the guide says to choose FTP and then pick one of the FTPS methods; for plain FTP you choose No encryption.
What each Login dialog field does
| Field | What it does |
|---|---|
| File protocol | Selects the transfer protocol, such as SFTP or FTP |
| Hostname | Server name or IP address; the only mandatory field |
| Port number | Needed only for non-standard server ports |
| Username | Your account name; WinSCP asks at login if you leave it empty |
| Password | Advised against if you plan to save the site; leave empty when using public key authentication |
| Anonymous login | FTP only; sets the username to anonymous and the password to [email protected] |
Default ports
You can leave Port number alone when the server uses the standard port for its protocol.
| Protocol | Default port |
|---|---|
| SSH (SFTP) | 22 |
| FTP | 21 |
| FTPS (implicit) | 990 |
| WebDAV | 80 |
| Secure WebDAV and S3 | 443 |
Save the site so you do not retype it
Click Save in the Login dialog, enter a site name, and WinSCP stores the details for next time.
The Save drop-down offers Save As if you want to store the site under a new name.
The documentation advises against saving a password, though you can force it in the Save session as dialog if you accept that.
Double-clicking a saved site opens it, and the Edit button lets you change a saved site until you click Save or Cancel.
| Manage menu command | What it does |
|---|---|
| New folder | Creates a site folder; use folder/subfolder for subfolders |
| Rename | Renames a site, folder or workspace |
| Clone to New Site | Makes a new site from an existing one |
| Desktop Icon | Creates a desktop shortcut for a site |
| Open in PuTTY | Opens the session in PuTTY |
Under the Tools menu you can also import sites from PuTTY or FileZilla.
How to upload files
The WinSCP upload page lists several ways to start an upload, and each one shows a transfer options dialog first.
| Method | How |
|---|---|
| Drag and drop | Select local files and drag them onto the remote panel; drop on a remote folder to send them there |
| Keyboard | Use Files > Upload or press F5 with the local panel active |
| Move instead of copy | Hold Shift while dragging, or use Files > Upload > Upload and Delete (F6) |
| Copy and paste | Copy files in Windows File Explorer, then use Files > Paste or press Ctrl+V in WinSCP |
The page also says that files dropped on a session tab upload through that session.
How to download files
- Select the remote files or folders in the remote panel.
- Drag them onto a local folder, or choose Files > Download.
- Check the target in the transfer options dialog and confirm it.
In the Commander interface, dropping onto empty space in the local panel downloads to the current local folder.
Holding Shift while dragging moves the files, so they are deleted from the remote folder after the transfer.
Both uploads and downloads run in the foreground by default, which blocks the WinSCP window until they finish.
The transfer options dialog
This dialog appears before every transfer and lets you change the options or the target directory.
| Item | What it does |
|---|---|
| Target directory box | Sets the destination and defaults to the current working directory |
| Transfer settings button | Opens the Transfer Settings dialog, and its drop-down lists saved presets |
| Transfer in background | Runs the transfer in the background; the default is set in Preferences |
| Do not show this dialog box again | Suppresses the dialog |
If you hide the dialog, you can still pick a preset on the Transfer Settings toolbar before a transfer.
Transfer settings worth knowing
| Setting | What it does |
|---|---|
| Transfer mode | Choose Automatic, text or binary mode |
| File mask | Selects or excludes files and folders for transfer |
| Preserve timestamp | Keeps the last modification time of the source file |
| Speed | Limits transfer speed in KB/s |
| New and updated files only | Skips files already at the target with the same or newer timestamp |
| Exclude hidden files | Leaves out hidden and system files |
If the connection fails
If WinSCP reports that a connection was refused, check that the server runs SSH or FTP, because Windows does not include either by default.
To make your own Windows 11 PC accept SFTP connections, see how to turn on OpenSSH in Windows 11.
If WinSCP cannot find the server name at all, fixing a DNS server that is not responding on Windows covers the usual causes.
Sources
This guide follows the WinSCP pages Connect to FTP server or SFTP server, Configuring Session (Login Dialog), Uploading Files and Downloading Files, read on Nov 29 2026.