Create an SFTP server on Windows 11


In computing, the SSH File Transfer Protocol is a network protocol that provides file access, file transfer, and file management over any reliable data stream.

 Source

OpenSSH is available in apps > optional features > Add an optional feature


In the search box search for openssh and download and install it


Next navigate to Privacy & security > Windows Security > Firewall & network protection > Advanced settings



go to inbound rules and set the rule for open SSH to the same as the above screenshot


outbound rules. It should look like this 


Tap on New rule > port > specified remote ports , and type 22


Next you'll need to allow port 22 from you're router home page. Get the IP address by typing ipconfig in the command prompt

Enter the IPv4 address in the browser, login with your router username and password which can usually be found on the bottom of the modem


Look for secure shell service in the NAT section of advanced settings and use your IPv4 address. Make sure the port is 22


Open the search function and search for services. Locate openssh server and left click it. Go to properties and allow it to start automatically 



Then start the service




Now you can connect remotely to your favourite SFTP client like FileZilla and WinSCP by using your IPv4 address which you can find in Network & internet. You'll also need to enter your Microsoft login credentials and you might need to specify 22 in the 'port' field. To connect via other device the address would be SFTP://"your_IPaddress":22


Comments