Documentation
2.2. Windows Installation¶
2.2.1. Overview¶
For Microsoft Windows systems, SFTPPlus is available as an self-extract executable or as a .ZIP archive.
The installation files are available on our download page.
Once SFTPPlus is installed, use the Web Manager` administrative interface to configure and operate SFTPPlus. It can be accessed by default at https://localhost:10020.
The SFTPPlus application files must be installed on a local drive. Installation on a Windows Share or a network mapped drive is not supported.
The configuration file or log file can be stored on a network Windows Share. You can find more details on this page.
The default installation will create a Windows Service that will start SFTPPlus using the Local System account. It is recommended to create a dedicated service account for SFTPPlus and then reconfigure the Windows service. More details about setting a dedicated service account can be found on this page.
The automatic installation process will generate a new configuration file, together with the associated SSH keys and the SSL self-signed certificate.
2.2.2. Self-extract executable¶
In order to install SFTPPlus follow the steps:
Locate and launch the installer executable. It will automatically switch to run as an administrator and start the installation process.
Review the License Agreement and click the Agree button.
If you plan to run multiple SFTPPlus services on the same operating system, use a custom name for each instance. Otherwise use the default instance name.
Optionally, you can select a custom installation path.
The installer will ask to define the credentials used to access the Web Manager. You will use this username and password to connect to the management interface, once the installation was completed.
As the final step, click Install. This will install SFTPPlus and will automatically start the Windows Service.
When the installation completes, click Close.
2.2.3. ZIP archive installer¶
The .ZIP archive can be used for Server Core without the Desktop Experience or with automated deployment and provisioning tools.
To install follow these steps:
Unpack the ZIP file and copy the server folder to your preferred install location, e.g.
C:\\Program Files\\SFTPPlus\
.Initialize the environment using the default values by running the following command in a command line as Administrator:
CMD> admin-commands.bat initialize --init-password PLAIN-TEXT-PASSWORD
where, --init-password defines the password used by the default administrator admin. It will be used to connect to the Web Manager once the installation is completed.
Some customization can be made at this stage using the following arguments:
--init-admin defines the username of the administrator used to connect to the management interface (default is admin);
--local-admin-access forces the access to the management only from localhost (by default will allow access from any host);
--key-size generates a RSA or DSA key of size SIZE (default size is 3072).
Here is an example for a customized initialization:
CMD> admin-commands.bat initialize --init-admin sftpplus-admin --init-password wX67%7B8AtvI --local-admin-access --key-size 4096
In the install folder a new configuration file is created along with the scripts required to run the application server as a Windows service.
Once the SFTPPlus configuration is successfully initialized, the service-install.bat can be executed in order to finalize the installation:
CMD> service-install.bat
After the service is installed, regular Windows Services management tools can be used for starting, stopping, restarting, or removing it.
2.2.4. Configure a dedicated Windows service account¶
For security reasons, creating a dedicated service account is recommended. Use the newly created service account to run the SFTPPlus service after completing the installation.
The following is a list of steps to configure the service.
Create a new standard Windows user account via Control Panel. Go to User Accounts then Manage Account and select the Create new Standard account option.
Alternatively, use the Computer Management administrative tool. Go to Local Users and Groups, then Users and select New User.
Open Windows Services, select the SFTPPlus service and stop it. In its Properties window, select the Logon tab and set the Log on as to be the newly created OS account.
Open the Registry Editor and navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\ Application\sftpplus-serviceAccess the Permission windows for the
sftpplus-service
registry key and grant full control for the dedicated OS account.Ensure that the service account has the appropriate rights to modify/write/read the
log
andconfiguration
folders.To allow the server to create missing home folders under a Windows system, the account used for running SFTPPlus will require backup and restore privileges. In the Local Security Policy administrative tool, go to Local Policies, then User Rights Assignment, and add the account to Back up files and directories and Restore files and directories policy settings.
Alternatively, you can use the Computer Management administrative tool. Go to Local Users and Groups, Groups and add the user to the Backup operators group.
Start the SFTPPlus service.
2.2.5. Multi-instance/parallel SFTPPlus installations¶
Multiple SFTPPlus instances can be installed and operated in parallel on the same machine or VM.
For example, you can use one instance for the testing/staging environment and another one for the production environment.
During the installation process, you will need to choose for each installation a unique instance name and a unique installation path.
When running on the same system, parallel SFTPPlus instances can't use the same port numbers.
To manage parallel SFTPPlus instances, after installing the first SFTPPlus
instance, connect to the Web Manager web-based console and change the
management port from the default value of 10020
to a different one.
For example, you can use the following port convention
for their management ports:
10031 - for the first instance
10032 - for the second instance
10033 - for the third instance
2.2.7. Server folders hierarchy and permissions¶
Once installed, SFTPPlus should have the following hierarchical folder structure on disk.
The following also describes the permissions required for the service account.
.\ - read-only - Contains server administration commands and the init script.
.\configuration - read-only Stores all data related to SFTPPlus configuration.
.\configuration\server.ini - read-and-write Stores the main configuration.
.\doc - read-only - Contains server documentation and release notes.
.\extension - read-only Contains custom extensions implemented using the SFTPPlus API.
.\include - read-only - This folder is for developers interested in extending the functionality of the server. May be missing on some releases.
.\lib - read-only - This folder is for internal server use.
.\log - read, write, create file and delete file - Stores all SFTPPlus log messages. SFTPPlus will write log entries into the log files. When log rotation is enabled, it will also create new rotated files and delete old rotated files.