cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to fetch directory of SFTP server from CPI

Nikhil_Gursal
Participant
0 Kudos
1,759

Hi Community,

I'm are trying to connect on - premise SFTP server from CPI.I have maintained SFTP server details in cloud connector and it's reachable from cloud connector.

Maintained the known host file in security material in CPI. Upon connection test from CPI , Its reachable if we don't select check directory option but getting below error when we are checking directory, any guidance will be appreciated.

com.jcraft.jsch.JSchException: java.io.IOException: inputstream is closed Cause: java.io.IOException: inputstream is closed

Regards,

Nikhil

Accepted Solutions (0)

Answers (2)

Answers (2)

alex_radu
Product and Topic Expert
Product and Topic Expert
0 Kudos

This works for me when I enter just a forward-slash in the Directory field (i.e. / ) that will go into the root of that sftp server. I'm not sure what the pipe+forward-slash in your screen shot is intended for. My advice, try a more specific path. Ex: /Outbox or /Inbox, etc, depending on what your folder structure is on the sftp target server.

MarcoFreischlag
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nikhil,

please check the SFTP servers system logs to get information about the root cause of this issue. Looks like the problem might be with the server. Maybe missing directory permission?

You can also check FAQ: SFTP adapter in SAP Cloud Integration: https://itsm.services.sap/kb?id=kb_article_view&sysparm_article=KB0169456

Regards Marco

Nikhil_Gursal
Participant
0 Kudos

Hi Marco,

Thanks for response.

The user has already provided full access to directory, will check the logs on SFTP server.

The note shared by you required service now login ,I don't have it , will it be possible for you to share it here so that i can check it.

Thanks,

Nikhil