cancel
Showing results for 
Search instead for 
Did you mean: 

SAP btp to sftp connectvity

vijaygn1990
Explorer
0 Kudos

Hi Team,
I am trying to achive a use case of reading a simple file placed in an sftp server. Below are the steps followed. Please help to advise as am not able to achieve the connection succesfuly.

1. Created Cloud connector with backend SFTP server. When pinged, says connectivity established.

2. Created a destination pointing to the cloud connector and the connectivty works in the console.

But I wrote my nodejs code where i first connect to connector proxy and from there to sftp server. But its says timeout. Can help to point the right way to do it.I followed this blog but of no luck

https://stackoverflow.com/questions/70715068/sftp-through-http-proxy-using-ssh2-sftp-client-library-...

Any help or sample will be greatly appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

gregorw
Active Contributor
0 Kudos

You have to follow Using the TCP Protocol for Cloud Applications and make use of the SOCKS5 proxy. I would guess the SFTP NPM Package you're using isn't supporting that. If you have a SAP Cloud Integration instance available I would suggest to use it's SFTP functionality.

ilja_farber
Explorer
0 Kudos

https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/consuming-connectivity-service
explains how to invoke an onprem service through the cloud connector. Unfortunately examples use java, I hope you will able to translate to js.

vijaygn1990
Explorer
0 Kudos

Which sectin yu are referring t ? Is it sectin under

Using the TCP Protocol for Cloud Applications??

Any idea of how the proxy host ad port format will be like?

ilja_farber
Explorer
0 Kudos

the section "Set up the HTTP Proxy for On-Premise Connectivity" (https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/consuming-connectivity-service#set-up-the-http-proxy-for-on-premise-connectivity) on the mentioned page. Proxy host is actually always the localhost, the port take better from env.