This guide sets up a secure SFTP server on a Windows PC or Windows Server, with a user who can upload and download files, in about five minutes. It uses SLightSFTP, which is free and open source. Nothing needs to be typed into a configuration file.

1. Install SLightSFTP

Download SLightSFTP-<version>-setup.msi from the latest release and run it.

If Windows shows "Windows protected your PC", click More info, then Run anyway. The installer is not code-signed yet. You can check the download against SHA256SUMS on the release page: Get-FileHash .\SLightSFTP-<version>-setup.msi in PowerShell.

2. Sign in and set the admin password

Start SLightSFTP from the Start menu. Sign in as admin with the password admin123. You are asked to choose a new password straight away. Pick a strong one, because this account controls the server.

3. Create an SFTP listener

A listener is a port the server accepts connections on. Open Listeners and click Add Listener:

Click Create Listener. It starts at once, and its card shows the server's host key fingerprint. Give it to your users so their SFTP client can confirm they reached the right server the first time they connect.

The Listeners panel with an SFTP and an FTP listener
Listeners, each with its port, status and host key

4. Create a user and give them a folder

Open Users and click Add User. Enter a username and a password, and click Create User. Then click Edit next to the new user:

  1. Under Subscribed Listeners & Permissions, tick your SFTP listener and the permissions they need (read, upload, delete and so on).
  2. Under Virtual Paths, click Add Virtual Path. Enter / as the virtual path and choose a folder on this computer as the real path, for example D:\Shares\alice. The user sees that folder as their root and cannot go above it.
  3. Click Update User.

Users can also sign in with SSH keys: paste their public key into SSH public keys. You can set a storage quota, speed limits and the IP addresses they may connect from on the same form.

Editing a user: SSH keys, quota, IP allow-list and speed limits
Per-user settings

Many users with the same access? Create a group with the listener, permissions and folders once, and add the users to it.

5. Allow the port in Windows Firewall

Windows may ask whether to allow SLightSFTP on the network the first time a listener starts. If it doesn't, or other computers can't connect, open the port in PowerShell as administrator (change 22 if you chose another port):

New-NetFirewallRule -DisplayName "SLightSFTP SFTP" -Direction Inbound -Protocol TCP -LocalPort 22 -Action Allow

To reach the server from the internet, also forward the port on your router to this computer.

6. Connect

From another computer, use any SFTP client with the server's address, the port, and the user's name and password:

The client shows the server's host key fingerprint on the first connection. Check that it matches the one on the listener's card.

Users can also reach their files in a web browser at http://<server>:3000/files once you tick Enable web file access for them and start the Web GUI Server under Listeners. See sharing files with clients.

7. Keep it running as a Windows service

So far the server runs while the app is open and you are signed in. To keep it running after you sign out, and start it with Windows, open Listeners and click Install and start service on the Windows service card (Windows asks for administrator permission). The app then hands the listeners to the service. You keep managing users and their folders in the app, and the service uses the changes straight away.

Next steps