You may run the command below to view the recent log for troubleshooting: Get-WinEvent -LogName OpenSSH/Operational ` 'C:\Program Files\OpenSSH-Win32\uninstall-sshd.ps1' If you don't need the SFTP server, you can uninstall it: powershell.exe -ExecutionPolicy Bypass -File ` To allow SFTP only, you can add the following lines to the config file: ForceCommand internal-sftp PermitTunnel no AllowAgentForwarding no AllowTcpForwarding no X11Forwarding no To change the root directory, you can uncomment the line with root directory and change the path: ChrootDirectory For example, if you want to change the port number of the server, you can uncomment the line with port number and change it to the one you like, like the following: Port There is a file named sshd_config at %programdata%\ssh, where you can modify it to suit your needs. However, you might still want to do some configurations before using it. Up till now, the SFTP server is basically ready to use. To make sure SFTP server starts up every time when the server is up, run the following command: Set-Service -Name sshd -StartupType 'Automatic' When everything is ready, you can start sshd: Start-Service sshd You have to create a firewall rule: New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' ` File 'C:\Program Files\OpenSSH-Win32\install-sshd.ps1'Īs the new SFTP server needs to accept external request, a port needs to be used to allow inbound connection. Install sshd: powershell.exe -ExecutionPolicy Bypass ` Once you have downloaded OpenSSH for Windows, you can unzip it by running the following command: Expand-Archive -Path ` Be sure to open the PowerShell as an administrator before running the following commands.įirst, you have to unzip the file.
Setup sftp filezilla server zip file#
Once you have downloaded the zip file of OpenSSH, you can complete the setup using PowerShell. Originally, OpenSSH was only available on Linux, but Microsoft has ported it to Windows, so you can now use OpenSSH by downloading the zip file from here.
Setup sftp filezilla server how to#
sftp-server is one of the utility programs provided by OpenSSH, so this article will walk you through how to set up an SFTP server on Windows using OpenSSH. OpenSSH is a suite of programs for establishing secure connections to the server. So, are there any other ways to set up an SFTP on Windows? Yes, of course. Even FileZilla Server, one of the most popular programs for setting up a FTP server, doesn't support SFTP out of the box. Unlike Linux, Windows does not come with any tools for setting up an SFTP server.