Guides · Pier

How to map an SFTP / SSH server as a Windows drive

Windows 10 and 11 ship with OpenSSH — ssh, scp and sftp work from the command line. What Windows cannot do is show an SFTP server as a drive letter in Explorer. This guide covers how to get one, using the SSH access you already have.

Updated

Why a drive letter and not an SFTP program

A graphical SFTP client is fine for moving files. A drive letter is for working on them in place: opening a spreadsheet from the server in Excel, pointing a backup tool or a script at S:\, editing a configuration file in your usual editor. Every Windows program understands a drive; few understand SFTP.

It also needs nothing new on the server. If you can ssh user@host, you can mount it — no Samba, no extra ports.

What you need

Mount it with Pier

  1. Download and run the Pier installer; it adds the Dokany file-system driver when it is missing.
  2. Open Pier from the tray icon and press Add. Choose the SFTP protocol.
  3. Enter the server name, the port (22 unless changed), the user and the root folder — for example /home/user or /srv/data.
  4. Choose password or key file. For a key, point to the private key, such as C:\Users\you\.ssh\id_ed25519, and enter its passphrase if it has one.
  5. Press Check. Pier logs in, tests writing and renaming and reports whether the server keeps timestamps and resumes uploads.
  6. Pick a drive letter and press OK.

Pier reads OpenSSH-format keys — Ed25519, ECDSA and RSA — directly. Keys in PuTTY's .ppk format need converting to OpenSSH format with PuTTYgen first.

What makes it usable on a slow link

Permissions and ownership

The drive acts as the SSH user you logged in with. Files you create belong to that user and get the server's default permissions (its umask). If a folder is read-only for that user on the server, it is read-only on the drive — the server check in Pier tells you so before you find out the hard way.

Other ways to do it

Open-source alternatives exist: SSHFS-Win on top of WinFsp, and rclone mount. They are good tools for people comfortable with a command line. Pier's difference is a managed Windows service with a settings window, a persistent block cache, a transfer queue you can see and automatic updates.

Pier

Pier mounts WebDAV (Nextcloud, ownCloud), SFTP and NFSv3 storage as a real Windows drive letter with a local block cache, resumable transfers and an offline mode. Free for up to 5 drives.

Frequently asked questions

Does the drive survive a reboot?

Yes. Pier runs as a Windows service and mounts the drive at start-up for every user on the machine.

Is the connection encrypted?

Yes. SFTP runs inside SSH; nothing is sent in the clear. The stored password or key passphrase is encrypted on the machine with Windows DPAPI.

Can I mount several servers?

The Free edition mounts up to 5 drives, across all protocols. Pro removes the limit.

Does it work through a jump host?

Pier connects directly to the server's SSH port. For a server reachable only through a bastion, forward a local port with ssh -L and point the drive at localhost.

Related guides