How to set up an SFTP Server in Windows - V2 Cloud (2024)

How to set up an SFTP Server in Windows - V2 Cloud (1)

Files Management

Server

Network

Windows OS

Introduction

In this tutorial, we will show you how to set up a SFTP server in Windows. If you have a cloud computer with V2 Cloud and you’re looking to setup a secure FTP server in your cloud computer instead, follow this link. The main difference between FTP and SFTP is the security aspect. Running applications that use SFTP for file transfers is the answer to protecting that data in transit.

This tutorial will provide the steps required to set up an SFTP Server using Windows Server 2019’s OpenSSH Server feature. Our SFTP client computer will be a Windows 10 computer, and we will be using Filezilla as the client application to connect to the server.

You can browse the different sections of this tutorial. This is what you need to setup a SFTP server in Windows:

  1. Configure the SFTP server feature (OpenSSH Server) in Windows Server 2019
  2. Create the root SFTP directory
  3. Create the user account that will be used for file transfers
  4. Install and configure the SFTP client for data transfers
  5. Perform an SFTP transfer between client and server

Note: the terms “directory” and “file folder” refer to the same object. They are used interoperably in this tutorial.

Section 1: Configure the SFTP server feature (OpenSSH Server) in Windows Server 2019

STEP 1

Login to your server. Then type apps and features in the search bar. Under Apps and Features (the section in the middle of the page), click Manage optional features.

How to set up an SFTP Server in Windows - V2 Cloud (2)

STEP 2

Scroll among the options, find OpenSSH Server, click it, then click Install.

How to set up an SFTP Server in Windows - V2 Cloud (3)

The installation will now begin in the background. We are going to make some changes to the Windows Services to allow for the newly installed OpenSSH server to be started automatically.

STEP 3

Type services in the search bar. Then click the Services Desktop app. Locate the OpenSSH SSH Server option from the list. Right-click it, then select Properties.

How to set up an SFTP Server in Windows - V2 Cloud (4)

STEP 4

Change the Startup type to Automatic. Click Start afterward.

How to set up an SFTP Server in Windows - V2 Cloud (5)

STEP 5

Once the service has started the Service status: will change from Stopped to Running. Click OK to proceed.

How to set up an SFTP Server in Windows - V2 Cloud (6)

STEP 6

Locate the OpenSSH Authentication Agent service. Right-click it, then select Properties.

How to set up an SFTP Server in Windows - V2 Cloud (7)

STEP 7

Repeat Steps 3 to 5 where you will make the same changes as you did with the OpenSSH SSH Server with this service (OpenSSH Authentication Agent).

When done, you’ll notice the status of the two services is now set to Running.

How to set up an SFTP Server in Windows - V2 Cloud (8)

STEP 8

Browse to the following folder, C:\ProgramData\ssh in the address bar. You may have to type the location as the ProgramData folder is normally hidden by default. Click the “drop-down arrow” beside Text documents then select All Files. Select sshd_config from the files list, then click Open.

How to set up an SFTP Server in Windows - V2 Cloud (9)How to set up an SFTP Server in Windows - V2 Cloud (10)

STEP 9

When the sshd_config file opens, click Ctrl+F on your keyboard to launch the Find app. Type “root”, then click Find Next. We are looking for the entry #ChrootDirectory.

How to set up an SFTP Server in Windows - V2 Cloud (11)

STEP 10

Edit the entry to this ChrootDirectory C:\SFTPRoot. This is the location where our SFTP files will be stored from the server side. Click File then click Save.

How to set up an SFTP Server in Windows - V2 Cloud (12)

Let’s now create the actual folder/root directory we just referenced as our location to save SFTP files.

Section 2: Create the root SFTP directory

STEP 11

Browse to the C:\ drive on your server. Right-click in any empty space then select New from the drop-down menu then click Folder. Name the folder SFTPRoot. Ensure that it is exactly the same as the folder name referenced in the path in Step 10.

How to set up an SFTP Server in Windows - V2 Cloud (13)How to set up an SFTP Server in Windows - V2 Cloud (14)

Now let us add the user account on this server that will be used to do the SFTP transfers.

Section 3: Create the user account that will be used for file transfers

STEP 11

Open the Server Manager, then select Tools and click Computer Management.

How to set up an SFTP Server in Windows - V2 Cloud (15)

STEP 12

Click the drop-down arrow beside Local Users and Groups. Click the Users folder. In the middle pane, right-click on any white space and select New User from the drop-down menu.

How to set up an SFTP Server in Windows - V2 Cloud (16)

STEP 13

Create the user account by entering your username and password. Record these credentials as we will be using them for our SFTP transfers. Uncheck the option User must change password at next logon and check the options User cannot change password and Password never expires. Click Create once finished.

How to set up an SFTP Server in Windows - V2 Cloud (17)

Now let us find and record the IP address of our SFTP server. This will be needed along with the username and password we just created for our SFTP connection.

STEP 14

Type cmd at the search bar. Select Command Prompt. Type ipconfig at the prompt then hit the Enter key on your keyboard.

How to set up an SFTP Server in Windows - V2 Cloud (18)

The Ip address of our server is 192.168.50.4.

Our server-side configuration is now complete. We now need to configure our client computer to connect to this newly configured SFTP server and transfer data to it.

Section 4: Install and configure the SFTP client for data transfers

In this example, we will be using Filezilla as our SFTP client. To continue, download the Filezilla client application and install it on your computer. Let’s now create our SFTP site.

STEP 15

Launch the Filezilla app. Click the File option from the menu bar then click Site Manager.

How to set up an SFTP Server in Windows - V2 Cloud (19)

STEP 16

Select the My Sites folder under the left section under Select entry: Then click the New site button.

How to set up an SFTP Server in Windows - V2 Cloud (20)

STEP 17

Name the site, we’ll call it SFTP-Site1. On the General tab in the left section of the Site Manager window, configure the following; Protocol: SFTP – SSH File Transfer Protocol, Host:

192.168.50.4, Port: 22, Logon Type: Normal, User: the User/username that will be used to connect to the SFTP site/server, Password: password for the user. When done click Connect.

How to set up an SFTP Server in Windows - V2 Cloud (21)

STEP 18

Save the password and click OK. Click OK at the Unknown host key pop-up box. Note, you can check the checkbox Always trust the host, add this key to the cache.

How to set up an SFTP Server in Windows - V2 Cloud (22)

Once connected successfully the following will be what you’ll see.

How to set up an SFTP Server in Windows - V2 Cloud (23)

We’ll now proceed to create and configure the remote SFTP directory.

STEP 19

Right-click in any white space in the bottom-right-hand quadrant of the Filezilla GUI window. Then select Create Directory. This will create a file folder in the root SFTP folder on the SFTP server.

How to set up an SFTP Server in Windows - V2 Cloud (24)

STEP 20

Create a name for the new directory, then click OK.

How to set up an SFTP Server in Windows - V2 Cloud (25)

You’ll now see that our newly created directory has been created successfully on our client computer.

How to set up an SFTP Server in Windows - V2 Cloud (26)

If we browse to the SFTPRoot folder on the SFTP server, we’ll see that our directory has been automatically created.

How to set up an SFTP Server in Windows - V2 Cloud (27)

Now that our two sites have been configured. Let’s move on to the final step to perform a secure file transfer.

STEP 21

Select the “source file folder”, from the top left-hand file folder listing with the label Local site: that has the file/files that you want to transfer to your server. Our folder is C:UsersKurwinDownloads. On the Remote site: select your destination file folder. Locate your file under the bottom-left hand file listings then right-click it and select Upload.

How to set up an SFTP Server in Windows - V2 Cloud (28)

You’ll now see that your file has been transferred successfully.

How to set up an SFTP Server in Windows - V2 Cloud (29)

SFTP server verifies our successful transfer. We see our file in our target directory within our root directory.

How to set up an SFTP Server in Windows - V2 Cloud (30)

That’s it. We have now successfully set up a SFTP server in a Windows environment.

How to set up an SFTP Server in Windows - V2 Cloud (31)

There is a better way to do IT with V2 Cloud

By using V2 Cloud, you get access to a fully-integrated virtual desktop solution, without the traditional complexity of other cloud providers.
There is an easier way to enable secure remote access to employees without sacrificing end-user experience and performance.

V2 Cloud offers a cloud desktop infrastructure with

    • No hidden fees
    • No complicated setup
    • No contracts
    • Flat-rate pricing model

We’re the #1 virtualization solution for small businesses. Create virtual desktops, servers, and applications to improve productivity and significantly reduce your IT costs.

Learn more about V2 Cloud and our cloud VDI solution. Get started with a risk-free 7-day trial, and experience the simplicity, scalability and power of V2 Cloud.

How to set up an SFTP Server in Windows - V2 Cloud (2024)
Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 5912

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.