how-to-create-sftp-server-windows-10

How To Create Sftp Server Windows 10?

SFTP or SSH File Transfer Protocol is one of the popular methods used to transfer data over a remote server. If you’re looking for the instructions to create SFTP server Windows 10 computer, then this page will definitely help you.

Usually, we can create the SFTP server on Windows 10, either using OpenSSH or IIS (Internet Information Services). On this page, we’ll show you how to install the Secure FTP server on Windows 10 using OpenSSH.

STEP 1: INSTALLING SFTP SERVER ON WINDOWS 10

  • Go to the Settings window.
  • Click Apps > Apps & Features > Manage optional features. On the Manage optional feature page, look for the OpenSSH server feature.
  • Select and expand the OpenSSH feature.
  • Click the Install button.

create SFTP server Windows 10


STEP 2: CONFIGURING SSH SERVER

  • Now, in Windows Firewall, you have to allow incoming connections to the SSH server.
  • Usually, when an optional feature has been installed, the firewall rule ’OpenSSH stated OpenSSH SSH Server’ will be created. if not, create SFTP server Windows 10.

Open Windows PowerShell and type the following command:

  • New-NetFirewallRule -Name sshd -DisplayName ‘OpenSSH SSH Server’ -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program “actual path of sshd.exe”
  • Now, go to the Control Panel window and select System and Security > Administrative Tools and open Services > OpenSSH SSH Server service. 
  • To enable the auto-start feature, go to the Action section, and click the Properties option. In the Properties window, select the Automatic option for Startup type.
  • Click the Start the service button to initialize the OpenSSH SSH Server service.

STEP 3: CONFIGURING SSH PUBLIC KEY AUTHENTICATION

  • On your Windows account folder (C:\Users\username\.ssh), create the .ssh folder. 
  • Set the ACL permissions for both the .ssh folder and authorized_key file.

STEP 4: CONNECTING TO THE SERVER

  • Before connecting to the server, find the host key by typing the following command as mentioned below.

Using Command Prompt:

  • for %f in (%ProgramData%\ssh\ssh_host_*_key) do @%WINDIR%\System32\OpenSSH\ssh-keygen.exe -l -f “%f”

Using PowerShell:

  • Get-ChildItem $env:ProgramData\ssh\ssh_host_*_key | ForEach-Object { . $env:WINDIR\System32\OpenSSH\ssh-keygen.exe -l -f $_ }
  • Now the start WinSCP dialog box will open.
  • Go to the New Site node section.
  • Check if the SFTP protocol is selected. If not, select create SFTP server Windows 10.
  • Enter your server’s IP address in the Hostname field.
  • Similarly, in the User name box, enter your Windows 10 account name.
  • To enable the Public key authentication, click the Advanced button. Now, in the Account Site Settings dialog box, navigate to the SSH section followed by the Authentication page. 
  • Select the preferences as per your desire.
  • To set a password authentication, enter your Windows account’s security key in the Password field. Click the Save button followed by Login. Now, verify your host key.
  • Contact us if you need remote assistance to create SFTP server Windows 10.