This is the third post in the series "SFTP Adapter - Installing SFTP Server on Windows". If you have not read the previous posts, you can refer the below links.
SFTP Adapter - Installing SFTP Server on Windows - Part 01
SFTP Adapter - Installing SFTP Server on Windows - Part 02
This post describes the steps to test the localhost SFTP server using SFTP Adapter which available as part of Secure connectivity add-on. It also consists of steps to generate public key finger print and channel configuration for password based authentication.
- Create a test file in the SFTP server using the following command
- $ cat >test.txt
- Enter the test data
- Ctrl + Z to save the file
- Check the existance of the file and relevant permission
- $ ls -l
- Generate the public key finger print using the steps mentioned in How to Determine the Public Key Finger Print of a SSH Server
- $ ssh-keygen -lf /etc/ssh_host_rsa_key.pub
- Configure the SFTP Sender with the following values
- Configure the server host as localhost
- Use the above generated server finger print
- Use the OS user credential for authentication (The user account which is used for testing in the previous post)
- Use the created test file in the first step
- Activate & Start the channel. During execution, the channel short log will look like below
- The content of the message can be verified by opening the same message in monitoring
This verifies that the the locally installed SFTP server works perfect with PI SFTP Adapter. The next post in this series covers the steps to generate the SSH Private Key and test the SFTP Adapter using the locally installed SFTP Server(using private key based authentication)