The recently launched SFTP Adapter (as part of SAP Secure Connectivity add-on) is merely a client like a standard File/FTP adapter. In order to test this adapter, we need a SFTP Server which is up and running. Usually system admins install/configure the SFTP server for us in a Linux/Unix server and used to provide the limited access.
If we want to install the SFTP adapter in our own PCs (like FileZilla FTP Server) for unlimited access , it will be very easy if we use Unix/Linux(It will be covered in upcoming post). But for windows, its a nightmare because there is no readily installer is available(?).
Fortunately, the OpenSSH for Windows is available, but still there are lot of post installation steps are required which would be complex for a novice user. I have faced lot of Windows service related issues to start the SFTP server due to anti-virus and firewall restrictions which requires hours of troubleshooting effort to fix the same for beginners. You can try the same by just following steps mentioned in http://www.worldgoneweb.com/2011/installing-openssh-on-windows-7/
Since PI NWA key storage doesn’t support SSH keys for Private key based authentication, OpenSSL utility is required convert SSL keys to SSH keys and vice versa. OpenSSL can be installed separately and again searching for the windows binary and installing the same is a huge pain.
If we use Cygwin (never heard about this? here you go http://en.wikipedia.org/wiki/Cygwin), both SFTP Server, SFTP Client (for testing) and OpenSSL utility are available under one roof. The following steps will explain how to download and install Cygwin.
My PI instance is installed on a Windows 2003 Server and I am using the same machine for installing the ‘localhost’ SFTP server.
- Go to http://cygwin.com/install.html and click on setup.exe
- Click on “Run”
- Trust the “Unknown Publisher” by clicking “Run” again
- Click on “Next”
- Choose “Install from Internet” and click “Next”
- Leave the default directory (or) provide a directory path which doesn’t have spaces
- Choose a location to store all the downloaded setup files
- Choose “Use Internet Explorer Proxy Settings”
- Choose any Mirror and Click “Next”
- It will download the setup files which has the meta data about all the available packages/tool/utilities
- Click “OK” for the alert
- Search for “ssh” then click on the highlighted icon to choose all the SSH/SFTP tools to install (Don’t click on “Next” Immediately)
- Then Search for “openssl” and choose the highlighted packages for install and Click on “Next”
- Verify the list of packages and dependencies to be installed
- Wait till all the selected packages to be installed(I will take a while and I am sure you can grab a coffee in the mean time)
- We are done. Click “Finish” to complete the setup
The next post in this series covers the steps for auto configuring and starting the SSH service(where SFTP runs).