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.
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
- It will automatically create all the files which is required for user profile (Similar to Linux/Unix)
- To configure the SSH Service (where SFTP Server runs) automatically, execute the following command
- 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”
- 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
- Next, the SSH Service/SFTP Server should be started manually by executing the following command
$ cygrunsrv.exe -S sshd &
- 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)
- 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”
- 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
- Click “Quick Connect” and accept the finger print
- It will successfully connect to the SFTP Server.
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.