sftp in windows

Ask Always 41 Reputation points
2021-06-07T17:04:38.983+00:00

Trying to get sftp set up for the first time. Basically, a third party application hosted in the cloud wants to sftp to on-prem server to pull files. I see references to openssh server in windows 2019 but cannot find a good documentation on using it for sftp purpose. (third party application wants a sftp url).

What are the steps in setting up sftp after installing openssh server in 2019? And, is there any url associated with sftp? Thanks.

Windows development | Internet Information Services
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Server | Devices and deployment | Configure application groups
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 86,026 Reputation points
    2021-06-07T17:12:50.263+00:00

    Hi @Ask Always ,

    I'm not sure if you can configure an SFTP URL, well you can always use a DNS name/ IP address.
    Here's the official Microsoft documentation for setting up an OpenSSH Server on Windows Server 2019 / Windows10:

    Install OpenSSH
    https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

    OpenSSH Server Configuration for Windows 10 1809 and Windows Server 2019
    https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration

    Here's also a third party guide:
    How to set up an SFTP server in Windows using OpenSSH

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,
    Leon

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Ask Always 41 Reputation points
    2021-07-16T15:37:56.23+00:00

    Used the two articles to create sftp and restrict access. There was another blog that I used to configure user access, that is, restrict user to one root folder. Also, #Match Group Administrators had to be commented.

    fyi the sftp url also works in that the browser needs a sftp client extension. If one has a "test" folder and a "myTest.txt" inside that folder then the sftp url to that file will be (at least that seemed to work in my case)

    sftp://sftpserver.mydomain.com//test/myTest.txt

    Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.