I am a juniro developer and new to webemthods. I am having a requirement to get a file from a SFTP server. When I searched in WMUSERS I found this thread([URL]wmusers.com) where I see a solution for my problem. I have downloaded the package BW_Utilities.zip and installed it. Also I have downloaded the jar jsch-0.1.37.jar and copied to ./Integration Server/lib/jars/ and re-started the IS.
However when I tried to login i am getting the following output…
channleSFTp # null
Session Factory # com.jcraft.jsch.Session
Status # Unable to connect to FTP server. com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
If anybody can throw some light on this issue and help me out it would be a great help.
Ram,
In order for you to do SFTP, you need to exchange keys with the remote server first. Also use the OpenSSH package from advantage, and exchange the keys at OS level before doing an sftp service invoke. SFTP is FTP over SSH, and is an not an open standarad supported by webMethods. The documentation along OpenSSH package provides a good start for you
I have checked the OpenSSH documentation and I see that for SFTP we have to setup the keys. However our client doens’t want to go in this route. Instead they have given us a username, password and file location for their SFTP server and asked us to pick files from there.
This was the reason for not implementing the OpenSSH. Also if you see the below link [COLOR=#22229c]http://wmusers.com/forum/showthread.php?t=6579[/color] where Mr.Aditya had acheived the SFTP by implementing JSCH. I was actually trying that and i am getting the following error.
channleSFTp # null
Session Factory # com.jcraft.jsch.Session
Status # Unable to connect to FTP server. com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read
channleSFTp # null
Session Factory # com.jcraft.jsch.Session
Status # Unable to connect to FTP server. com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read