Can somebody can help on the mentioned error. I am using datatransfer component to transfer data from sftp to s3. In sftp i have base path /user/mahesh/tst
Under test if i keep multiple folders i am getting the error .
com.jcraft.jsch.JSchException: connection is closed by foreign host
if one folder is kept it is wokring fine. please suggest me.
Hi @MC203075, this sounds like a condition related to the SFTP you are hitting. A couple things come to mind. One is permissions... Are you certain the user you are logging in with has access to all directories and sub-directories under the base path. If the permissions on a single directory or file that you are trying to pull from doesn't have the appropriate permissions you could get this error.
Perhaps a better way of troubleshooting this would be to set the Auto Debug on and Debug level to something like 5 and you may get more information about the error. Either way, it's definitely something on the SFTP server side if you can connect to the base folder only and it works fine. Let us know what you find out. Thanks for posting!