Skip to Content
Author's profile photo Former Member

SFTP Adapter – Installing SFTP Server on Windows – Part 02

This is the second post in the series “SFTP Adapter – Installing SFTP Server on Windows”.  If you have not read the previous post, you can refer the below link.–part-01

This post describes steps for auto configuring, starting the SSH service and testing using SSH & SFTP Clients.

  • Open the “Cygwin Terminal” from the start menu

17. open cygwin terminal.PNG

  • It will automatically create all the files which is required for user profile (Similar to Linux/Unix)

18. setup the profile.PNG

  • To configure the SSH Service (where SFTP Server runs) automatically, execute the following command

    $ ssh-host-config

    19. ssh host config.PNG

  • It will automatically creates all the keys & certificates required for the SSH Service/SFTP Server
  • After that it will try to install the SSH Service/SFTP Server as a windows service
  • Answer “Yes” for all the question except the last query mentioned in the below snippet
  • For the question “Do you want to use a different name? (yes/no)”, Answer “No”

  20. answer yes for all questions.PNG

  • Answer “Yes” for the next question to create the username and provide the password for the same user to be created
  • It will complete all the required  steps to configure the SSH Service/SFTP Server

21. create a new cyg user.PNG

  • Next, the SSH Service/SFTP Server should be started manually by executing the following command

    $ cygrunsrv.exe -S sshd &

      22. start the ssh server.PNG

  • The SSH access can be tested by executing the following SSH Client command

    $ ssh admin@localhost

  • Accept the finger print and provide the password for the user ‘admin’ (or any OS user)

23. Login to test.PNG

  • The “pwd” command (present working directory) can be used to find the location of home directory. By default it would be “C:\cygwin\home\admin”

24. pwd.PNG

24a. home location.PNG

  • The SFTP access can be tested by using any of third party SFTP supported clients like FileZilla. The default port for SSH Service & SFTP Server is 22

24b. filezilla entry.PNG

  • Click “Quick Connect” and accept the finger print

24c. accpet the finger print.PNG

  • It will successfully connect to the SFTP Server.

24d. connected.PNG

It is verified that SFTP Server is installed properly and up & running. Now, it can be used with SFTP Adapter for file transfers.

The next post in this series covers the steps to configure and test the SFTP Adapter using the locally installed SFTP Server.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      $ ssh admin@localhost

      • Accept the finger print and provide the password for the user 'admin' (or any OS user

      At the above step which password do I provide ? I tried using my own password but it did not work.

      When I do provide a password it gives me an error message "Permission denied, please try again"

      Please advise

      Author's profile photo Former Member
      Former Member

      First, very nice how to article on sftp adapter interface setup for Windows.

      I also have the same question as the prior commenter... Hari.

      I wonder if these accounts are expected to be 'local' accounts on the server. mine are actually AD/domain service accounts... so I am getting the error message.

      I will setup a local account to see if that resolves the error prompt, but I would like to know how to represent the ssh request using a domain account.

      please advise.

      thx again for information.