cancel
Showing results for 
Search instead for 
Did you mean: 

FTP out of Firewall : Possible ways to connect it.

santosh_k3
Active Participant
0 Kudos

Hi All,

My scenario is File -


>XI----->File.

Where i am picking the files through NFS sender channel and i need to place the files in FTP server

Because of Firewall issue i am not able to connect to FTP .

When i spoke to basis guy regarding this , he told its not possible directly to connect.

He told to use sh to connect.

i think sh in nothing but Shell script right?

as the server is running on UNIX,

As i gone through few forums on Run OS command Before/After Message Processing ,

i need some clarification how to proceed.

First i need to connect to the FTP server using Shell script ,

whether it is possible to send files to FTP which is out of Firewall through shell script?

Whether the Shell script should be written by XI consultant or by the unix programmers?

Can anyone share me the process how to write a shell script

for my scenario in order to connect to FTP which is out of Firewall.

Thanks

Sai.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you need to perform FTP via SSH, you can use SFTP Adapter. Check if you have SFTP adapter on your system, else ask your Basis Team to install the SFTP adapter. They can install the components for AEDAPTIVE SFTP adapter. No need to create Shell scripts.

See this link for details: http://www.aedaptive.com/index.php/solutions/sftp-for-sap-netweaver

Regards,

Jenny

santosh_k3
Active Participant
0 Kudos

Hi JennyAmi,

thanks for u r reply.

SFTP adapter is not installed , nor business agrees for the installation of it.

So i need to go for Shell script.

Can any body help me in providing the code of Shell script

that is used to move the files from local NFS to the FTP.

Thanks

Sai

Former Member
0 Kudos

This can be a script for move a file:

cd /$1

ftp -n -v <<%%EOF%%
open $2
user $3 $4
prompt
asci
cd $5
mput $6
bye
%%EOF%%

This Shell script, accept input parameters:

$1 => Source Directory

$2 => Receiver Hostname/IP

$3-$4 => FTP User & Password

$5 => Destination Directory

$6 => File Name

You can call this script also directly from your SAP XI Channel, or you can put it in Crontab in your UNIX OS (if you want to schedule the execution).

ps. ps. About what Basis guy said... IMHO he refer to SecureCoPy Connection (http://www.hypexr.org/linux_scp_help.php)...