|

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

StepWhat to doWhere
1Pick the File protocol and enter Hostname, Username and PasswordLogin dialog, New Site
2Click Login (or Save first to keep the site)Login dialog
3Upload by dragging files to the remote panel or pressing F5Main window
4Download with Files > Download or by dragging to a local folderMain 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

  1. Start WinSCP, and the Login dialog opens.
  2. Select the New Site node in the left tree.
  3. Choose the File protocol: pick SFTP for an SSH server, or pick FTP for plain FTP or FTPS.
  4. Type the server name in the Hostname box.
  5. Type your account name in the Username box and your password in the Password box.
  6. 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

FieldWhat it does
File protocolSelects the transfer protocol, such as SFTP or FTP
HostnameServer name or IP address; the only mandatory field
Port numberNeeded only for non-standard server ports
UsernameYour account name; WinSCP asks at login if you leave it empty
PasswordAdvised against if you plan to save the site; leave empty when using public key authentication
Anonymous loginFTP 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.

ProtocolDefault port
SSH (SFTP)22
FTP21
FTPS (implicit)990
WebDAV80
Secure WebDAV and S3443

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 commandWhat it does
New folderCreates a site folder; use folder/subfolder for subfolders
RenameRenames a site, folder or workspace
Clone to New SiteMakes a new site from an existing one
Desktop IconCreates a desktop shortcut for a site
Open in PuTTYOpens 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.

MethodHow
Drag and dropSelect local files and drag them onto the remote panel; drop on a remote folder to send them there
KeyboardUse Files > Upload or press F5 with the local panel active
Move instead of copyHold Shift while dragging, or use Files > Upload > Upload and Delete (F6)
Copy and pasteCopy 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

  1. Select the remote files or folders in the remote panel.
  2. Drag them onto a local folder, or choose Files > Download.
  3. 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.

ItemWhat it does
Target directory boxSets the destination and defaults to the current working directory
Transfer settings buttonOpens the Transfer Settings dialog, and its drop-down lists saved presets
Transfer in backgroundRuns the transfer in the background; the default is set in Preferences
Do not show this dialog box againSuppresses 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

SettingWhat it does
Transfer modeChoose Automatic, text or binary mode
File maskSelects or excludes files and folders for transfer
Preserve timestampKeeps the last modification time of the source file
SpeedLimits transfer speed in KB/s
New and updated files onlySkips files already at the target with the same or newer timestamp
Exclude hidden filesLeaves out hidden and system files
Permissions are not for every protocol. The documentation says Set permissions on upload is not supported for FTP, WebDAV or S3.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *