โ03-02-2018 09:20 AM
Hello,
Weโre trying to connect with Windows-based SFTP server in order to read data files, but getting the error as -
โerrorโ: โUnable to read from sftp://sftp server//readme.txtโ
โreasonโ: โCannot open input stream for sftp://sftp server/readme.txtโ
โresolutionโ: โCheck for URL syntax and file access permissionโ
This is a very critical time of our program and any help or lead would be much appreciated.
Thanks!
โ03-02-2018 01:15 PM
Assuming that you ARE using the basic file permission, and the domain name like โsftp serverโ is the one on the valid and recognized CA cert, you might want to validate that the port number is right, and that the case of the file names and directories are right. Some ssl implementations are touchy.
โ03-05-2018 03:55 AM
Thanks for the response @stephenknilans.
Port number, file names, and directories are correct, but still, weโre getting the same error.
Furthermore, in the above post, Iโve replaced the actual server name with โsftp serverโ just to any client-related information.
Please let us know!
โ03-05-2018 04:53 AM
I figured you just changed the name. Iโve been hiding such information also on my side. Iโm just someone trying to help. I donโt know what to say at this point, but I am sure snaplogic support can look into it more.
Steve
โ03-06-2018 08:03 AM
On our Linux based node servers, we have found that often we need to first make the SFTP connection directly from the host, as it will often prompt you to store the fingerprint of the server. Making the initial connection from a snap does not seem to allow us to do that. You may want to try validating that the Windows server can make the SFTP connection first before trying in your snap.
Tim