Skip to content

The Dummy Programmer

Stories of daily programming

  • Home
  • The Dummy Programmer Robot
    • Overview
    • Version history & downloads
    • Tutorials
      • TDP Robot – The basics
      • A simple SQL Server backup solution
      • A simple SQL Server backup solution – A next step
  • My other dummy projects
  • Games
    • Space Y: An Asteroids clone
  • Services
    • What’s my user agent
    • What’s my IP address
  • About
  • Toggle search form

Configuring an SFTP server on Windows Server

Posted on July 24, 2018November 17, 2019 By

In order to share file in a secure way, I needed to configure an SFTP server on a Windows Server machine (don’t confuse with FTPS!).

Since Windows doesn’t come with an SFTP server by default, you have to install a software to do that.

To do the job, I choose “Bitvise SSH Server” which I like because is simple, free for personal use, and has a reasonable cost if you upgrade to full version.

First of all, download the software from the Bitvise web site: https://www.bitvise.com/ssh-server-download

Once the download is complete, launch the executable to start the installation.

You will see a form like this (screenshot taken from version 7.44):

Bitvise installation first step

Check the license agreement and select the option “Install new default instance” which is good for most cases.

Bitvise installation choose edition

Choose “Personal Edition” which is fine for our example.

Bitvise installation personal edition info

Insert your name, then press “Ok”.

Completed the installation you have to restart the server.

Now some configuration steps….

First of all, you have to setup users that will access your SFTP server. Bitvise allow you to manage users in two ways:

  • Windows account: access to your SFTP folder is managed using one or more Windows account
  • Virtual account: access to your SFTP folder is managed using user accounts created in Bitvise

We are going to use virtual accounts for this test.

Create the folder that you want to use to contain the files (in the example “C:\TestSFTP”).

Open the Bitvise control panel and click on “Open easy setting”.

A configuration popup will appear. In the “Server settings” tab leave all the default values except for field “Open Windows Firewall” that you have to set to “Open port(s) to any computer”.

Click on “Virtual accounts” and press “Add” to create a new account.

Configure the user as follow:

  • set user name to “TestSFTP”, you will need it to connect to the SFTP server
  • click on “Virtual account password” to set the password for the user
  • in “Shell access type” select “No shell access” (I don’t want users to use SSH shell)
  • in “Virtual filesystem layout” set “Limit to root directory”
  • in “Root directory” set the folder you created at the start of this tutorial

When you are done, press “OK” to confirm user configuration and then “Save changes” in the form below.

You are now ready to use your SFTP server!

To connect to the server you can simply use FileZilla:

Open the site manager using the button in the upper left corner.

Click on “New site” and configure the connection as follow:

  • Protocol: SFTP SSH File Transfer Protocol
  • Host: your SFTP server ip address
  • Logon type: normal
  • User: TestSFTP
  • Password: the password for TestSFTP

Click “Connect” to start using your server!

SFTP

Post navigation

Previous Post: Error message: User account restriction error
Next Post: HTML AJAX image upload & preview with JQuery and PHP

Related Posts

Public key authentication in a Windows SFTP Server SFTP

Search

Related posts

  • Public key authentication in a Windows SFTP Server
  • How to extend the trial period of Windows Server 2019
  • Reset Sql Server cache
  • How to know who is blocking a query in Sql Server

Categories

  • .NET 6 (1)
  • AJAX (1)
  • Android (2)
  • Apache (4)
  • ASP.NET (9)
  • ASP.NET MVC (3)
  • Avalonia UI (1)
  • BCP (1)
  • Bitlocker (2)
  • C# (14)
  • CentOS (4)
  • ClosedXML (1)
  • CLR (1)
  • DNS (1)
  • Encryption (3)
  • Excel (2)
  • FuelPHP (3)
  • Games (2)
  • Google Chrome (1)
  • GSuite (1)
  • HTML (1)
  • Imagick (2)
  • Javascript (1)
  • Kindle (1)
  • LAMP (3)
  • Linux (6)
  • MariaDB (2)
  • Mathematics (2)
  • MySql (4)
  • NPOI (1)
  • Office 365 (1)
  • Perl (1)
  • PHP (6)
  • Programming (1)
  • Remote desktop (1)
  • SFTP (2)
  • Sockets (3)
  • Sql Server (18)
  • Sql Server 2016 (14)
  • Sql Server 2019 (1)
  • SSL (2)
  • Task scheduler (1)
  • Telerik ASP.NET AJAX (2)
  • The Dummy Programmer Chat (2)
  • The Dummy Programmer Robot (6)
  • Threading (5)
  • Tools (1)
  • TPL (3)
  • TypeScript (3)
  • Ubuntu (4)
  • Virtualization software (3)
  • Visual Studio (1)
  • Visual Studio Code (2)
  • Web fonts (1)
  • Web programming (6)
  • Windows (12)
  • Windows 10 (15)
  • Windows Forms (1)
  • Windows Server (6)

Copyright © 2023 The Dummy Programmer | Privacy Policy | Terms of use |

Powered by PressBook Masonry Dark