WinSCP
Browse, upload and download files in XNS storage from Windows with WinSCP.
Overview
WinSCP is a free, open-source file transfer client for Windows. Besides SFTP and FTP it speaks the S3 protocol, so it shows your Relayer’s buckets as folders in a two-panel window, copies files both ways, and runs the same transfers unattended from scripts with winscp.com. With XNS, WinSCP connects to your Relayer with its Amazon S3 protocol and the Path URL style.
Tested with WinSCP 6.7 (build 17845) for Windows on 2026-10-18 against Relayer build 59a37e64.
The test ran a full cycle three ways: a winscp.com script over http://<relayer-host>:9000, the same script over https://<relayer-host>:9443 with a trusted certificate, and the WinSCP window over port 9000. Each run uploaded 204 files (77 MB, including an empty file, a 64 MiB file and file names with spaces and non-ASCII characters), downloaded them to a new folder with matching SHA-256 checksums, and deleted them, which emptied the bucket. The 64 MiB file was uploaded in 5 MiB multipart parts.
Connect to XNS
Every S3 tool connects to your Relayer with the same settings. Enter them exactly as shown; the notes below the table cover the two that most tools get wrong by default.
| Setting | Value |
|---|---|
| Endpoint (HTTP) | http://<relayer-host>:9000, where <relayer-host> is the address of the machine running your Relayer. Always available. |
| Endpoint (HTTPS) | https://<relayer-host>:9443, available only after a certificate is installed on the Relayer. Port 9000 never serves HTTPS. |
| Region | us-east-1 |
| Addressing | Path-style. In tools that ask, turn on force path style or path-style access, and turn off virtual-hosted style. |
| Signature | Signature Version 4 (V4). Version 2 is refused. |
| Access key and secret key | For a tool, create a scoped key: IAM → Create IAM User in the Relayer UI. The secret is shown once, so copy it then. The install’s root pair is on Configure → Credentials; keep it for administration. |
| Bucket | Create it first: Files → Create Bucket in the Relayer UI, or let the tool create it. Names are 3-63 characters of lowercase letters, digits, hyphens and periods. |
HTTPS and certificates. The Relayer UI offers two certificates for port 9443: Let’s Encrypt, which needs a domain managed in Cloudflare and a Cloudflare API token, or self-signed. Most tools refuse a self-signed certificate unless certificate verification is turned off in the tool. On a private network, plain HTTP on port 9000 avoids the question.
Path-style. A tool left on virtual-hosted style (often labeled Amazon S3 or AWS) sends the bucket name in the hostname, and the Relayer cannot find the bucket. Choose the tool’s S3 compatible or generic S3 option and set path-style.
Not supported: server-side encryption with customer-provided keys (SSE-C) or KMS keys (SSE-KMS), bucket website hosting and bucket replication. Server-side encryption with AES256 is accepted. See Encryption at the Gateway, Identity and Access and Configure.
Prerequisites
- WinSCP 6.7 or later from winscp.net. It is free; the installer needs no account.
- A scoped key on your Relayer (see the table above). WinSCP can create the bucket for you, or create it first in the Relayer UI.
Setup
Step 1: Fill in the Login dialog
Start WinSCP. The Login dialog opens (later, choose New Tab to open it). Select New Site and fill in Session:
| Field | Value |
|---|---|
| File protocol | Amazon S3 |
| Encryption | No encryption for port 9000. For HTTPS, keep TLS/SSL Implicit encryption and use port 9443. |
| Hostname | <relayer-host>, without http://. WinSCP fills in s3.amazonaws.com; replace it. |
| Port number | 9000 (or 9443 for HTTPS). Selecting Amazon S3 sets it to 443, so change it. |
| Access key ID | The scoped key’s access key. |
| Secret access key | The scoped key’s secret key. |
Leave Credentials from AWS environment off.

Step 2: Set the URL style to Path
Choose Advanced. In Advanced Site Settings, open Environment → S3 and set:
- Default region:
us-east-1(WinSCP also usesus-east-1when the field is empty). - URL style: Path. The default, Virtual Host, does not work with the Relayer.
Leave Requester pays, Session token and Role ARN empty, and choose OK.

Step 3: Save the site and log in
Choose Save, give the site a name such as XNS storage, and choose OK. Leave Save password off unless the computer is yours alone; WinSCP then asks for the secret key at each login. Choose Login. The remote panel opens at / and lists your buckets as folders.
Step 4: Transfer files
- Create a bucket: at
/in the remote panel, create a folder (F7, ormkdirin a script). Each top-level folder is a bucket, so its name must follow the bucket rules above. - Upload: select files or folders in the local panel and press F5 (Upload), then OK. Folders are copied with their contents.
- Download: select them in the remote panel and press F5 (Download).
- Delete: select them in the remote panel and press F8, then confirm. Deleting a folder deletes every object under it.

Scripting with winscp.com
winscp.com, installed next to WinSCP.exe, runs transfers from a script file. Over plain HTTP the session URL uses the s3plain:// scheme; over HTTPS it uses s3://. The path URL style is set with -rawsettings S3UrlStyle=1. A script that uploads a folder, downloads it again and removes it:
option batch abort option confirm off open s3plain://<relayer-host>:9000/ -username=<access-key> -password=<secret-key> -rawsettings S3UrlStyle=1 mkdir /<bucket> put C:\data\* /<bucket>/backup/ get /<bucket>/backup/* C:\restore\ rm /<bucket>/backup exit
Run it with winscp.com /ini=nul /script=xns.txt. For HTTPS, change the open line to open s3://<relayer-host>:9443/ ... with the same switches. The script file holds the secret key, so keep it where only you can read it. See WinSCP scripting for the full command set.
Known limits
- Virtual Host URL style fails, even with an IP address. WinSCP then puts the bucket name in front of the host name (
<bucket>.<relayer-host>) and stops with “Could not resolve hostname”. Where that name does resolve, the Relayer reads the request as a list of buckets and WinSCP reports that the folder does not exist. Set URL style to Path. - Port 9000 is HTTP only. With TLS/SSL Implicit encryption on port 9000 the connection fails with “SSL handshake failed: SSL error: wrong version number”. Choose No encryption for 9000, or use port 9443 with encryption on.
- A self-signed certificate on port 9443 was not tested; the test used a trusted Let’s Encrypt certificate.
- Deleting a bucket needs more than a scoped ReadWrite key. Removing a top-level folder with such a key fails with “Access denied”. Empty the bucket in WinSCP, then delete the bucket in the Relayer UI.
- Folder objects. WinSCP stores each uploaded folder as a zero-byte object whose name ends in
/(204 files made 208 objects in the test). Other S3 tools show them as empty folders. - Windows only. WinSCP has no macOS or Linux version; see Cyberduck for those.
- Not supported by the Relayer: SSE-C and SSE-KMS server-side encryption, bucket website hosting and bucket replication.
