cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP- what are the options?

Former Member
0 Kudos

Hi,

I have a IDOC - XI - SFTP scenario.

I would be receiving an IDOC and i have to write a file in a FTP server using SSH.

I have decided to do the SSH session using java code.

Now my question is where to put this java code?

Should i use java proxy? But i dont have a jsp or java application as receiver, can i just use the XI j2ee server as a place holder?

How can i use java proxies in this kind of scenario?

Is it possible at all or should i do it from a Java Mapping?

Accepted Solutions (0)

Answers (5)

Answers (5)

Shabarish_Nair
Active Contributor
0 Kudos

I have decided to do the SSH session using java code.

Now if this is what you have decided then the best way to get this done is;

1. Write the java code as a module and deploy it with your adapter - Not sure how easy this is going to be though.

2. In the java proxy, enable this code - easier i assume.

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi,

>

> I have a IDOC - XI - SFTP scenario.

> I would be receiving an IDOC and i have to write a file in a FTP server using SSH.

> I have decided to do the SSH session using java code.

>

> Now my question is where to put this java code?

>

>

> Should i use java proxy? But i dont have a jsp or java application as receiver, can i just use the XI j2ee server as a place holder?

> How can i use java proxies in this kind of scenario?

>

> Is it possible at all or should i do it from a Java Mapping?

The easiest way but costly is to buy a SFTP adapter from a 3rd party vendor.

The easiest way without cost but a bit of maintenance is this - /people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way

venkatanarayana_vagu
Active Participant
0 Kudos

Hello Siva,

Just check these blogs to give you clear picture for SFTP over FTP. Even you can check the FTPS option also.

/people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way

/people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi

JoelTrinidade
Active Contributor
0 Kudos

Hi,

deploy your ssh code as an module on the adapter engine.

Rgds

joel

Former Member
0 Kudos

Hi Joel,

Have you tried deploying the SSH code in the module? Did it work?

Sabarish,

Thanks. But i dont have java application like jsp in my scenario, how can i use java proxies in this case?

java proxies are still not clear to me.

Former Member
0 Kudos

Hello all,

Did someone implement the SFTP solution in a module? In which adapter did you place the solution?

Perhaps in a FTP receiver adapter, fooling the FTP part but calling a module with the Java SFTP code?

To put you in context, we already have Java code to retrieve files from an SFTP server, but we don't know where to place it... We know about the possibility of a Proxy solution, but we rather use the module one due to limitations.

Please, more details about the already implemented module SFTP solutions will be very appreciated

Thanks a lot!

Alvaro

Former Member
0 Kudos

Hi Accleo,

I did it using Java Proxies.

Former Member
0 Kudos

Hi Siva,

Several alternatives:

1. Use 3rd party FTP server, like GlobalScape which supports SFTP. From PI just do normal FTP, and in GlobalScape create a script to send it to the target using SFTP

2. Use 3rd party adapters like Aedaptive Solution, which support SFTP. Check this out: [http://www.aedaptive.com/index.php/solutions/sftp-for-sap-netweaver]

3. Create OS script to do SFTP and call the script in FTP receiver adapter.

Regards,

Lim...